Skip to main content
Operations represent actions on the Hive blockchain. Each operation is a protocol buffer message that can be added to transactions.

Importing operations

All operations are available from wax.proto.operations:

Operation types

The Operation type is a union type alias:
TypeAlias
Union of ProtoOperation | ProtocolOperation - any operation format.
TypeAlias
Union of Message | OperationBase - internal operation representation.
TypeAlias
Union of dict[str, Any] | str | Message - types convertible to proto.
TypeAlias
Union of dict[str, Any] | str - HF26 protocol format.

Transfer operations

transfer

Transfers HIVE or HBD between accounts.
str
required
Sender account name.
str
required
Receiver account name.
NaiAsset
required
Amount to transfer (HIVE or HBD in NAI format).
str
default:""
Transfer memo (can be encrypted).

recurrent_transfer

Sets up recurring transfers between accounts.
str
required
Sender account name.
str
required
Receiver account name.
NaiAsset
required
Amount per transfer.
str
default:""
Transfer memo.
int
required
Hours between transfers (minimum 24).
int
required
Total number of transfers to execute.

transfer_to_savings

Transfers funds to savings account.

transfer_from_savings

Initiates withdrawal from savings (3-day delay).
int
required
Unique ID for this withdrawal request.

cancel_transfer_from_savings

Cancels a pending savings withdrawal.

Voting operations

vote

Votes on a post or comment.
str
required
Voting account name.
str
required
Post author account name.
Post permlink.
int
required
Vote weight from -10000 (100% downvote) to 10000 (100% upvote). Use 0 to remove vote.

Content operations

comment

Creates a post or comment.
str
required
Parent post author (empty string for top-level posts).
Parent post permlink (category for top-level posts).
str
required
Author account name.
Post/comment permlink (must be unique for the author).
str
required
Post title (empty for comments).
str
required
Post/comment body content.
str
required
JSON metadata string (tags, app info, etc.).

delete_comment

Deletes a post or comment (must have no replies).

comment_options

Sets advanced options for a post.

Power operations

transfer_to_vesting

Powers up HIVE to Hive Power.

withdraw_vesting

Starts power down process (13 weeks).

delegate_vesting_shares

Delegates Hive Power to another account.

set_withdraw_vesting_route

Sets destination for power down payments.

Account operations

account_create

Creates a new account.

account_update2

Updates account authorities and settings.

claim_account

Claims a discounted account creation (uses RC).

create_claimed_account

Creates account using claimed ticket.

Witness operations

account_witness_vote

Votes for a witness.

account_witness_proxy

Sets witness voting proxy.

Proposal operations

create_proposal

Creates a Decentralized Hive Fund proposal.

update_proposal_votes

Votes on a DHF proposal.

remove_proposal

Removes a proposal.

Custom operations

custom_json

Executes custom JSON operations (for apps and protocols).
list[str]
default:"[]"
Accounts requiring active authority.
list[str]
default:"[]"
Accounts requiring posting authority.
str
required
Custom operation ID (e.g., “follow”, “reblog”, “community”).
str
required
JSON string containing operation data.

Market operations

limit_order_create

Creates a limit order on the internal market.

limit_order_cancel

Cancels a limit order.

convert

Converts HBD to HIVE (3.5 day delay).

collateralized_convert

Converts HIVE to HBD with collateral.

Rewards operations

claim_reward_balance

Claims pending rewards.

Complete example