avm.getAddressTxs
Returns all transactions that change the balance of the given address. Note: Indexing (index-transactions) must be enabled in the X-chain config.
A transaction is said to change an address's balance if either is true:
A UTXO that the transaction consumes was at least partially owned by the address.
A UTXO that the transaction produces is at least partially owned by the address.
Parameters:
address
- string - The address for which we're fetching related transactionscursor
- uint64 - (optional) The page number or offset. Leave empty to get the first page.assetID
- string - Only return transactions that changed the balance of this asset. Must be an ID or an alias for an asset.pageSize
- uint64 - (optional) The number of items to return per page. Optional. Defaults to 1024.
Returned Value:
txIDs - []string - The list of transaction IDs that affected the balance of this address.
cursor - uint64 - The page number or offset. Use this in request to get the next page.
Example Response:
Last updated