Skip to main content

asset_contracts

Creates, updates, deletes, gets or lists an asset_contracts resource.

Overview

Nameasset_contracts
TypeResource
Idaws.managedblockchain_query.asset_contracts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
contract_identifierobjectContainer for the blockchain address and network information about a contract.
deployer_addressstringThe address of the deployer of contract. (pattern: <code>[-A-Za-z0-9]{13,74}</code>)
metadataobjectThe metadata of the contract.
token_standardstringThe token standard of the contract requested. (ERC20, ERC721, ERC1155)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_asset_contractselectregionGets 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.
list_asset_contractsselectregionLists 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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.

SELECT
contract_identifier,
deployer_address,
metadata,
token_standard
FROM aws.managedblockchain_query.asset_contracts
WHERE region = '{{ region }}' -- required
;