Transaction Builder
Transaction Builder
begin_builder_transaction
Create a new transaction builder.
Handle of the new transaction builder.
add_operation_to_builder_transaction
Append a new operation to a transaction builder.
transaction_handle
: handle of the transaction builderop
: the operation in JSON format
replace_operation_in_builder_transaction
Replace an operation in a transaction builder with a new operation.
handle
: handle of the transaction builderoperation_index
: the index of the old operation in the builder to be replacednew_op
: the new operation in JSON format
set_fees_on_builder_transaction
Calculate and update fees for the operations in a transaction builder.
handle
: handle of the transaction builderfee_asset
: name or ID of an asset that to be used to pay fees
preview_builder_transaction
Show content of a transaction builder.
handle
: handle of the transaction builder
sign_builder_transaction
Sign the transaction in a transaction builder and optionally broadcast to the network.
transaction_handle
: handle of the transaction builderbroadcast
: whether to broadcast the signed transaction to the network
propose_builder_transaction
Create a proposal containing the operations in a transaction builder (create a new proposal_create operation, then replace the transaction builder with the new operation), then sign the transaction and optionally broadcast to the network.
handle
: handle of the transaction builderexpiration
: when the proposal will expirereview_period_seconds
: review period of the proposal in secondsbroadcast
: whether to broadcast the signed transaction to the network
propose_builder_transaction2
Create a proposal containing the operations in a transaction builder (create a new proposal_create operation, then replace the transaction builder with the new operation), then sign the transaction and optionally broadcast to the network.
handle
: handle of the transaction builderaccount_name_or_id
: name or ID of the account who would pay fees for creating the proposalexpiration
: when the proposal will expirereview_period_seconds
: review period of the proposal in secondsbroadcast
: whether to broadcast the signed transaction to the network
remove_builder_transaction
Destroy a transaction builder.
handle
: handle of the transaction builder
serialize_transaction
Converts a signed_transaction in JSON form to its binary representation.
tx
: the transaction to serialize
sign_transaction
Signs a transaction.
Given a fully-formed transaction that is only lacking signatures, this signs the transaction with the necessary keys and optionally broadcasts the transaction.
tx
: the unsigned transactionbroadcast
: true if you wish to broadcast the transaction
get_prototype_operation
Returns an uninitialized object representing a given blockchain operation.
This returns a default-initialized object of the given type; it can be used during early development of the wallet when we don’t yet have custom commands for creating all of the operations the blockchain supports.
operation_type
: the type of operation to return, must be one of the operations defined ingraphene/protocol/operations.hpp
(e.g., “global_parameters_update_operation”)
Last updated