EVM pallet
Derived from live runtime metadata on TRN root (pallet index 27, captured 2026-05-02). For prose-style documentation see EVM on the curated reference side.
- Pallet index
27- Calls
- 4
- Events
- 5
- Errors
- 11
- Storage items
- 4
- Constants
- 0
Calls (extrinsics)
EVM.withdraw
See [
Pallet::withdraw].
api.tx.eVM.withdraw(address: H160, value: u128)| Argument | Type | Doc |
|---|---|---|
address | H160 | H160 |
value | u128 | BalanceOf<T> |
Call index: 0
EVM.call
See [
Pallet::call].
api.tx.eVM.call(source: H160, target: H160, input: Bytes, value: U256, gas_limit: u64, max_fee_per_gas: U256, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, access_list: Vec<(H160,Vec<H256>)>)| Argument | Type | Doc |
|---|---|---|
source | H160 | H160 |
target | H160 | H160 |
input | Bytes | Vec<u8> |
value | U256 | U256 |
gas_limit | u64 | u64 |
max_fee_per_gas | U256 | U256 |
max_priority_fee_per_gas | Option<U256> | Option<U256> |
nonce | Option<U256> | Option<U256> |
access_list | Vec<(H160,Vec<H256>)> | Vec<(H160, Vec<H256>)> |
Call index: 1
EVM.create
See [
Pallet::create].
api.tx.eVM.create(source: H160, init: Bytes, value: U256, gas_limit: u64, max_fee_per_gas: U256, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, access_list: Vec<(H160,Vec<H256>)>)| Argument | Type | Doc |
|---|---|---|
source | H160 | H160 |
init | Bytes | Vec<u8> |
value | U256 | U256 |
gas_limit | u64 | u64 |
max_fee_per_gas | U256 | U256 |
max_priority_fee_per_gas | Option<U256> | Option<U256> |
nonce | Option<U256> | Option<U256> |
access_list | Vec<(H160,Vec<H256>)> | Vec<(H160, Vec<H256>)> |
Call index: 2
EVM.create2
See [
Pallet::create2].
api.tx.eVM.create2(source: H160, init: Bytes, salt: H256, value: U256, gas_limit: u64, max_fee_per_gas: U256, max_priority_fee_per_gas: Option<U256>, nonce: Option<U256>, access_list: Vec<(H160,Vec<H256>)>)| Argument | Type | Doc |
|---|---|---|
source | H160 | H160 |
init | Bytes | Vec<u8> |
salt | H256 | H256 |
value | U256 | U256 |
gas_limit | u64 | u64 |
max_fee_per_gas | U256 | U256 |
max_priority_fee_per_gas | Option<U256> | Option<U256> |
nonce | Option<U256> | Option<U256> |
access_list | Vec<(H160,Vec<H256>)> | Vec<(H160, Vec<H256>)> |
Call index: 3
Events
EVM.Log
Ethereum events from contracts.
| Field | Type | Doc |
|---|---|---|
log | {"address":"H160","topics":"Vec<H256>","data":"Bytes"} |
EVM.Created
A contract has been created at given address.
| Field | Type | Doc |
|---|---|---|
address | H160 |
EVM.CreatedFailed
A contract was attempted to be created, but the execution failed.
| Field | Type | Doc |
|---|---|---|
address | H160 |
EVM.Executed
A contract has been executed successfully with states applied.
| Field | Type | Doc |
|---|---|---|
address | H160 |
EVM.ExecutedFailed
A contract has been executed with errors. States are reverted with only gas fees applied.
| Field | Type | Doc |
|---|---|---|
address | H160 |
Errors
EVM.BalanceLow
Not enough balance to perform action
EVM.FeeOverflow
Calculating total fee overflowed
EVM.PaymentOverflow
Calculating total payment overflowed
EVM.WithdrawFailed
Withdraw fee failed
EVM.GasPriceTooLow
Gas price is too low.
EVM.InvalidNonce
Nonce is invalid
EVM.GasLimitTooLow
Gas limit is too low.
EVM.GasLimitTooHigh
Gas limit is too high.
EVM.Undefined
Undefined error.
EVM.Reentrancy
EVM reentrancy
EVM.TransactionMustComeFromEOA
EIP-3607,
Storage
EVM.StagedEvmActivities
Staged EVM call/create activities within the current block, to be consumed by pallet-ethereum for eth_getLogs visibility.
await api.query.eVM.stagedEvmActivities()Returns: Vec<PalletEvmStagedEvmActivity>
Modifier: Default
EVM.AccountCodes
await api.query.eVM.accountCodes(key1)- Key:
H160(hasher: Blake2_128Concat) - Returns:
Bytes
Modifier: Default
EVM.AccountCodesMetadata
await api.query.eVM.accountCodesMetadata(key1)- Key:
H160(hasher: Blake2_128Concat) - Returns:
{"_alias":{"size_":"size","hash_":"hash"},"size_":"u64","hash_":"H256"}
Modifier: Optional
EVM.AccountStorages
await api.query.eVM.accountStorages(key1, key2)- Key:
(H160,H256)(hashers: Blake2_128Concat, Blake2_128Concat) - Returns:
H256
Modifier: Default
wss://root.rootnet.live/archive/ws · captured 2026-05-02