Path Parameters
- principalstringREQUIRED
Stacks address or a contract identifier.
- tx_idstringREQUIRED
Transaction id.
Returns
- object
Transaction with STX transfers for a given address
- txobject
Transaction object.
- tx_idstring
Transaction ID.
- nonceinteger
Used for ordering the transactions originating from and paying from an account. The nonce ensures that a transaction is processed at most once. The nonce counts the number of times an account's owner(s) have authorized a transaction. The first transaction from an account will have a nonce value equal to 0, the second will have a nonce value equal to 1, and so on.
- fee_ratestring
Transaction fee as Integer string (64-bit unsigned integer).
- sender_addressstring
Address of the transaction initiator.
- sponsor_nonceinteger
The nonce value
- sponsoredboolean
Denotes whether the originating account is the same as the paying account.
- sponsor_addressstring
The sponsor address
- post_condition_modestring
Enum: 'allow', 'deny'
- post_conditionsarray
Array of post conditions.
- principalobject
Principal object.
- type_idstring
String literal of type - PostConditionPrincipalType.
- condition_codestring
Enum: 'sent_equal_to', 'sent_greater_than', 'sent_greater_than_or_equal_to', 'sent_less_than', 'sent_less_than_or_equal_to'. A fungible condition code encodes a statement being made for either STX or a fungible token, with respect to the originating account.
- amountstring
Amount as an integer string.
- typestring
Value: 'STX'
- anchor_modestring
Enum: 'on_chain_only', 'off_chain_only', 'any'. The transaction MUST be included in an anchored block, the transaction MUST be included in a microblock, or the leader can choose where to include the transaction.
- block_hashstring
Hash of the block this transaction was associated with.
- block_heightinteger
Height of the block this transaction was associated with.
- burn_block_timestring
Unix timestamp (in seconds) indicating when this block was mined.
- burn_block_time_isostring
An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined.
- parent_burn_block_timestring
Unix timestamp (in seconds) indicating when this parent block was mined.
- parent_burn_block_time_isostring
An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined.
- canonicalarray
Set to true if the block corresponds to the canonical chain tip.
- tx_indexinteger
Index of the transaction, indicating the order. Starts at 0 and increases with each transaction.
- tx_statusstring
Enum: 'success', 'abort_by_response', 'abort_by_post_condition'. Status of the transaction.
- tx_resultobject
Result of the transaction.
- event_countinteger
Number of transaction events.
- parent_block_hashstring
Hash of the previous block.
- is_unanchoredboolean
True if the transaction is included in a microblock that has not been confirmed by an anchor block.
- microblock_hashstring
The microblock hash that this transaction was streamed in. If the transaction was batched in an anchor block (not included within a microblock), then this value will be an empty string.
- microblock_sequenceinteger
The microblock sequence number that this transaction was streamed in. If the transaction was batched in an anchor block (not included within a microblock), then this value will be 2147483647 (0x7fffffff, the max int32 value). This value preserves logical transaction ordering on (block_height, microblock_sequence, tx_index).
- microblock_canonicalboolean
Set to true if the microblock is anchored in the canonical chain tip, false if the transaction was orphaned in a micro-fork.
- execution_cost_read_countinteger
The execution cost read count.
- execution_cost_read_lengthinteger
The execution cost read length.
- execution_cost_runtimeinteger
The execution cost runtime.
- execution_cost_write_countinteger
The execution cost write count.
- execution_cost_write_lengthinteger
The execution cost write length.
- eventsarray
Array of transaction events.
- event_indexinteger
Index of the event, indicating the order. Starts at 0 and increases with each event.
- event_typestring
Enum: 'token_transfer', 'fungible_token_asset', 'non_fungible_token_asset', 'contract_call'. Type of event.
- eventsarray
List of transaction events.
- event_indexinteger
Index of the event, indicating the order. Starts at 0 and increases with each event.
- event_typestring
Type of the event.
- tx_idstring
Transaction ID associated with the event.
- contract_logobject
Details about the contract log.
- tx_typestring
Type of the transaction (e.g., 'token_transfer').
- token_transferobject
Details about the token transfer.
- recipient_addressstring
The recipient address for the transfer.
- amountstring
Transfer amount as an integer string.
- memostring
Hex encoded arbitrary message.
- stx_sentstring
Total amount of STX sent from the given address, including the transaction fee, in micro-STX as an integer string.
- stx_receivedstring
Total amount of STX received by the given address in micro-STX as an integer string.
- stx_transfersarray
List of STX transfers.
- amountstring
Amount transferred in micro-STX as an integer string.
- senderstring
Principal that sent STX. Unspecified if the STX were minted.
- recipientstring
Principal that received STX. Unspecified if the STX were burned.
- ft_transfersarray
List of fungible token transfers.
- asset_identifierstring
Fungible token asset identifier.
- amountstring
Amount transferred as an integer string. This balance does not factor in possible SIP-010 decimals.
- senderstring
Principal that sent the asset.
- recipientstring
Principal that received the asset.
- nft_transfersarray
List of non-fungible token transfers.
- asset_identifierstring
Non-fungible token asset identifier.
- valueobject
Non-fungible token asset value.
- hexstring
Hexadecimal representation of the asset value.
- reprstring
String representation of the asset value.