EVM Variables
To utilize EVM Network more effectively, let's familiarize ourselves with the EVM variables:
Variables
chain_name[chainId]
The chain_name variable provides you with the names of the chains. For example:
chain_name[1]
>> Ethereum
chain_name[56]
>> BNB Chain
chain_rpc[chainId]
The chain_rpc variable provides you with the best public RPC endpoint for the specified EVM chain. For example:
chain_rpc[1]
>> https://ethereum.publicnode.com //Ethereum
chain_rpc[56]
>> https://rpc.ankr.com/bsc //BNB Chain
chain_id[row]
The chain_id variable provides you with the chain IDs of all EVM chains in order. For example:
chain_id[0]
>> 1 //Ethereum
chain_id[1]
>> 56 //BNB Chain
New variables will be introduced in the Alpha stage.
Last updated