asset_contracts
Creates, updates, deletes, gets or lists an asset_contracts resource.
Overview
| Name | asset_contracts |
| Type | Resource |
| Id | aws.managedblockchain_query.asset_contracts |
Fields
The following fields are returned by SELECT queries:
- get_asset_contract
- list_asset_contracts
| Name | Datatype | Description |
|---|---|---|
contract_identifier | object | Container for the blockchain address and network information about a contract. |
deployer_address | string | The address of the deployer of contract. (pattern: <code>[-A-Za-z0-9]{13,74}</code>) |
metadata | object | The metadata of the contract. |
token_standard | string | The token standard of the contract requested. (ERC20, ERC721, ERC1155) |
| Name | Datatype | Description |
|---|---|---|
contract_identifier | object | Container for the blockchain address and network information about a contract. |
deployer_address | string | The address of the contract deployer. (pattern: <code>[-A-Za-z0-9]{13,74}</code>) |
token_standard | string | The token standard of the contract. (ERC20, ERC721, ERC1155) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_asset_contract | select | region | 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. | |
list_asset_contracts | select | region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_asset_contract
- list_asset_contracts
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
;
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.
SELECT
contract_identifier,
deployer_address,
token_standard
FROM aws.managedblockchain_query.asset_contracts
WHERE region = '{{ region }}' -- required
;