Explorer

class ape_starknet.explorer.StarknetExplorer(*, name: str, network: NetworkAPI, BASE_URIS: dict = {'mainnet': 'https://voyager.online', 'testnet': 'https://goerli.voyager.online', 'testnet2': 'https://goerli-2.voyager.online'})
get_account_transactions(**kwargs)

Get a list of list of transactions performed by an address.

Parameters:

address (AddressType) – The account address.

Returns:

Iterator[ReceiptAPI]

get_address_url(address: ChecksumAddress) str

Get an address URL, such as for a transaction.

Parameters:

address (AddressType) – The address to get the URL for.

Returns:

str

get_contract_type(address: Union[ChecksumAddress, int]) Optional[ContractType]

Get the contract type for a given address if it has been published in an explorer.

Parameters:

address (AddressType) – The contract address.

Returns:

If not published, returns None.

Return type:

Optional[ContractType]

get_contract_type_from_provider(address: Union[int, ChecksumAddress])

Get contract type from provider for a given address.

Parameters:

address (Union[int, AddressType]) – The contract address.

get_transaction_url(transaction_hash: str) str

Get the transaction URL for the given transaction.

Parameters:

transaction_hash (str) – The transaction hash.

Returns:

str

publish_contract(**kwargs)

Publish a contract to the explorer.

Parameters:

address (AddressType) – The address of the deployed contract.