Skip to main content
The 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:
The one exception is 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

Example:
Output:

Get EVM address from Sei address

Example:
Output:
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:
Example query for Wrapped Sei (WSEI):
Output:
Example balance query:
Output (raw integer, in the smallest unit):
Supported methods:
  • name: token name
  • symbol: token symbol
  • decimals: token decimals
  • totalSupply: total supply
  • balanceOf [address]: balance of an address
  • allowance [owner] [spender]: current allowance
For arbitrary methods or non-standard contracts, use payload with the contract ABI.

Payload generation

These commands generate ABI-encoded calldata without sending a transaction. They are useful when you build seid tx evm call-contract calls or inspect expected calldata.

ERC20 payload generation

Transfer tokens (1 token, 18 decimals):
Output:
Approve a spender:
Output:
Transfer from (pulls tokens from from to to, based on an earlier approve):
Output:
Supported methods:
  • transfer [to] [amount]
  • approve [spender] [amount]
  • transferFrom [from] [to] [amount]
Amounts are in the token’s smallest unit: for example, wei for an 18-decimal token, or 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 a 0x 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 to eth_getTransactionByHash:
Example:
Output:
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.

Common use cases

Check token balance and info

Prepare and send a transaction