View Source AWS.ManagedBlockchainQuery (aws-elixir v0.14.0)

Amazon Managed Blockchain (AMB) Query provides you with convenient access to multi-blockchain network data, which makes it easier for you to extract contextual data related to blockchain activity.

You can use AMB Query to read data from public blockchain networks, such as Bitcoin Mainnet and Ethereum Mainnet. You can also get information such as the current and historical balances of addresses, or you can get a list of blockchain transactions for a given time period. Additionally, you can get details of a given transaction, such as transaction events, which you can further analyze or use in business logic for your applications.

Link to this section Summary

Functions

Gets the token balance for a batch of tokens by using the BatchGetTokenBalance action for every token in the request.

Gets the information about a specific contract deployed on the blockchain.

Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.

Get the details of a transaction.

Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet address).

This action returns the following for a given blockchain network

An array of TransactionEvent objects.

Lists all of the transactions on a given wallet address or to a specific contract.

Link to this section Functions

Link to this function

batch_get_token_balance(client, input, options \\ [])

View Source

Gets the token balance for a batch of tokens by using the BatchGetTokenBalance action for every token in the request.

Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.

Link to this function

get_asset_contract(client, input, options \\ [])

View Source

Gets the information about a specific contract deployed on the blockchain.

The Bitcoin blockchain networks do not support this operation.

Metadata is currently only available for some ERC-20 contracts. Metadata will be available for additional contracts in the future.

Link to this function

get_token_balance(client, input, options \\ [])

View Source

Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.

Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.

Link to this function

get_transaction(client, input, options \\ [])

View Source

Get the details of a transaction.

Link to this function

list_asset_contracts(client, input, options \\ [])

View Source

Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet address).

The Bitcoin blockchain networks do not support this operation.

Link to this function

list_token_balances(client, input, options \\ [])

View Source

This action returns the following for a given blockchain network:

  • Lists all token balances owned by an address (either a contract address or a wallet address).

  • Lists all token balances for all tokens created by a contract.

  • Lists all token balances for a given token.

You must always specify the network property of the tokenFilter when using this operation.

Link to this function

list_transaction_events(client, input, options \\ [])

View Source

An array of TransactionEvent objects.

Each object contains details about the transaction event.

Link to this function

list_transactions(client, input, options \\ [])

View Source

Lists all of the transactions on a given wallet address or to a specific contract.