ManagedBlockchainQuery / Client / list_asset_contracts
list_asset_contracts#
- ManagedBlockchainQuery.Client.list_asset_contracts(**kwargs)#
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.
See also: AWS API Documentation
Request Syntax
response = client.list_asset_contracts( contractFilter={ 'network': 'ETHEREUM_MAINNET'|'BITCOIN_MAINNET'|'BITCOIN_TESTNET'|'ETHEREUM_SEPOLIA_TESTNET', 'tokenStandard': 'ERC20'|'ERC721'|'ERC1155', 'deployerAddress': 'string' }, nextToken='string', maxResults=123 )
- Parameters:
contractFilter (dict) –
[REQUIRED]
Contains the filter parameter for the request.
network (string) – [REQUIRED]
The blockchain network of the contract.
tokenStandard (string) – [REQUIRED]
The container for the token standard.
deployerAddress (string) – [REQUIRED]
The network address of the deployer.
nextToken (string) – The pagination token that indicates the next set of results to retrieve.
maxResults (integer) – The maximum number of contracts to list.
- Return type:
dict
- Returns:
Response Syntax
{ 'contracts': [ { 'contractIdentifier': { 'network': 'ETHEREUM_MAINNET'|'BITCOIN_MAINNET'|'BITCOIN_TESTNET'|'ETHEREUM_SEPOLIA_TESTNET', 'contractAddress': 'string' }, 'tokenStandard': 'ERC20'|'ERC721'|'ERC1155', 'deployerAddress': 'string' }, ], 'nextToken': 'string' }
Response Structure
(dict) –
contracts (list) –
An array of contract objects that contain the properties for each contract.
(dict) –
This container contains information about an contract.
contractIdentifier (dict) –
The container for the contract identifier containing its blockchain network and address.
network (string) –
The blockchain network of the contract.
contractAddress (string) –
Container for the blockchain address about a contract.
tokenStandard (string) –
The token standard of the contract.
deployerAddress (string) –
The address of the contract deployer.
nextToken (string) –
The pagination token that indicates the next set of results to retrieve.
Exceptions
ManagedBlockchainQuery.Client.exceptions.ThrottlingException
ManagedBlockchainQuery.Client.exceptions.ValidationException
ManagedBlockchainQuery.Client.exceptions.AccessDeniedException
ManagedBlockchainQuery.Client.exceptions.InternalServerException
ManagedBlockchainQuery.Client.exceptions.ServiceQuotaExceededException