Module-level declarations
Queries
Link copied to clipboard
query evm_balance_of_erc20(network_id: integer, token_address: byte_array, beneficiary: byte_array): big_integer
Retrieves the balance of an ERC-20 token for a specified beneficiary on a given network. The query is useful for checking the token balance of a beneficiary on an EVM network.
Link copied to clipboard
query get_last_evm_block(network_id: integer): (evm_block_height: integer, evm_block_hash: byte_array)?
Retrieves the most recent EVM block for a specified network.
Link copied to clipboard
query staked_evm_balance_of_erc20(network_id: integer, token_address: byte_array, beneficiary: byte_array): big_integer
Retrieves the staked balance of an ERC-20 token for a specified beneficiary on a given network. The query is useful for checking the staked balance of a beneficiary on an EVM network.
Operations
Link copied to clipboard
operation __evm_block( network_id: integer, evm_block_height: big_integer, evm_block_hash: byte_array, events: list<event_data>)
Processes an EVM block and its associated events.
Link copied to clipboard
operation add_new_evm_erc20( network_id: integer, token_address: byte_array, name: text, symbol: text, decimals: integer)
Checks if the requester is an admin, verifies that the token is not already registered, and then adds the new ERC20 token if the checks are passed.
This opearation takes multiple parameters.