seid q evm subcommands let you read EVM state (token data, address associations, and transactions). You do not need to send a transaction or run your own node.
Prerequisites
If your machine does not run a Sei node, append the--node flag to every seid q evm command. Point it at a Sei Cosmos RPC endpoint, the same kind that seid status uses:
seid q evm tx, which uses --evm-rpc to point at an EVM JSON-RPC endpoint (port 8545 by convention). See Transaction lookup below.
For a list of available RPC endpoints, see RPC endpoints.
Output format. Most commands print YAML by default. To get JSON, pass
-o json. ERC20 read methods (such as name and balanceOf) return a bare value with no formatting. The output shown below is the raw stdout.Address mapping
Sei addresses (sei1…) and EVM addresses (0x…) are linked through an on-chain association. The association is set the first time an account signs an EVM transaction or calls the address-association precompile. Until then, the two address spaces are independent.
Get Sei address from EVM address
Get EVM address from Sei address
If the account is not associated yet,
associated is false, and the other field is empty. This is normal for accounts that have transacted on only one side of the chain.ERC20 contract queries
Call standard view methods on any ERC20 contract:WSEI):
Supported methods:
name: token namesymbol: token symboldecimals: token decimalstotalSupply: total supplybalanceOf [address]: balance of an addressallowance [owner] [spender]: current allowance
payload with the contract ABI.Payload generation
These commands generate ABI-encoded calldata without sending a transaction. They are useful when you buildseid tx evm call-contract calls or inspect expected calldata.
- ERC20
- ERC721
- ERC1155
- Custom ABI
ERC20 payload generation
from to to, based on an earlier approve):Supported methods:
transfer [to] [amount]approve [spender] [amount]transferFrom [from] [to] [amount]
1000000 for 1 USDC with 6 decimals.Pointer system
Pointers bridge the EVM and CosmWasm sides of Sei. A CW20 can be exposed as an ERC20 through an EVM pointer at a0x address. An ERC20 can be exposed as a CW20 through a CW pointer at a sei1… address. The same applies to NFTs (CW721 and ERC721) and multi-token contracts (CW1155 and ERC1155).
Transaction lookup
Query transaction by hash
This command is equivalent toeth_getTransactionByHash:
This is the only
seid q evm command that takes --evm-rpc (an EVM JSON-RPC endpoint, typically port 8545) instead of --node (a Cosmos RPC). If you omit the flag, the default is http://0.0.0.0:8545, which works only if you run a local node. For hosted EVM RPC endpoints, see RPC endpoints.