Skip to Content
EVMTransactions with seid

Transactions with seid

Overview

EVM transactions on Sei allow you to interact with smart contracts, transfer tokens, and manage validator delegations through the command line interface. This guide covers certain available transaction types using the seid CLI, from basic token transfers to complex contract interactions and validator operations.

Prerequisites

Sending transactions via CLI requires you to have keys configured in your local keyring. You can then specify the key you want to use by appending --from=[key name] to your command.

If you don’t already have keys configured, you’ll need to either generate a new key or import an existing one into your local keyring. Refer to this guide on how to create a key for more details.

Network Configuration

If the machine you run these commands from are not a node of the network, you’d need to append --evm-rpc http://url-to-sei-evm-rpc to your command. Refer to the bottom of this page for the list of available RPC endpoints.

Refer to the RPC endpoints at the bottom of the page for a list of EVM RPC endpoints.

EVM Transaction Commands

Associate Address

Associates the Sei address and EVM address on-chain for the sending key:

seid tx evm associate-address

This command links your Sei and EVM addresses, enabling cross-layer interactions.

Send Native Tokens

Sends native tokens to the target EVM address:

seid tx evm send [to EVM address] [amount in wei]

Example:

seid tx evm send 0x1234567890abcdef... 1000000000000000000 --from=mykey --evm-rpc http://url-to-sei-evm-rpc

Deploy Contract

Deploys the EVM contract specified in path_to_binary:

seid tx evm deploy [path_to_binary]

Example:

seid tx evm deploy ./contract.bin --from=mykey --evm-rpc http://url-to-sei-evm-rpc

Call Contract

Sends a transaction that calls contract at the target address with the provided payload:

seid tx evm call-contract [addr] [payload hex]

Example:

seid tx evm call-contract 0xabc123... 0xa9059cbb000000... --from=mykey --evm-rpc http://url-to-sei-evm-rpc

Send ERC20 Tokens

Sends ERC20 tokens of contract at addr to the target recipient:

seid tx evm erc20-send [addr] [recipient] [amount]

Example:

seid tx evm erc20-send 0xtoken123... 0xrecipient456... 1000 --from=mykey --evm-rpc http://url-to-sei-evm-rpc

Delegate to Validator

Delegates specified amount to the target validator address. The validator address must be in Sei/Cosmos validator address (seivaloper1...) format:

seid tx evm delegate [val-addr] [amount]

Example:

seid tx evm delegate seivaloper1xyz... 1000000usei --from=mykey --evm-rpc http://url-to-sei-evm-rpc

Transaction Requirements

Important Requirements: Always specify the correct key with --from=[key-name]. Ensure sufficient balance for transaction amount plus gas fees. Use proper address formats for EVM addresses (0x…). For validator delegation, use Sei/Cosmos validator address format (seivaloper1...).

Last updated on