Skip to main content

Transactions

A transaction is a fundamental data structure for publishing a state transition on the ledger.

Types of Transactions

Deploy Transaction

The deployment transaction publishes an Aleo program to the network.

ParameterTypeDescription
typestringThe type of transaction (deploy)
idstringThe ID of transaction, computed via the Merkle Tree Digest of the transition IDs
ownerobjectThe owner address and signature
deploymentobjectThe deployment transaction info
feeobjectThe deployment transaction fee

Deployment Info

ParameterTypeDescription
global_state_rootu16The global state root of the merkle tree
transitionsarrayThe transitions

Execute Transaction

The execution transaction represents a call to an Aleo program.

ParameterTypeDescription
typestringThe type of transaction (execute)
idstringThe ID of transaction, computed via the Merkle Tree Digest of the transition IDs
executionobjectThe execution transaction info
fee (optional)objectThe optional execution transaction fee

Execution Info

ParameterTypeDescription
global_state_rootu16The global state root of the merkle tree
transitionsarrayThe transitions

Fee Transaction

The fee transaction represents a fee paid to the network, used for rejected transactions

ParameterTypeDescription
typestringThe type of transaction (fee)
idstringThe ID of transaction, computed via the Merkle Tree Digest of the transition IDs
feeobjectThe rejected transaction fee

Transaction Structure

ParameterTypeDescription
typestringThe type of transaction
idstringThe ID of transaction (at1 prefix)
deploymentobjectThe deployment transaction info
additional_feeobjectThe additional fee for the transaction