Skip to content

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].

ts
api.tx.eVM.withdraw(address: H160, value: u128)
ArgumentTypeDoc
addressH160H160
valueu128BalanceOf<T>

Call index: 0

EVM.call ​

See [Pallet::call].

ts
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>)>)
ArgumentTypeDoc
sourceH160H160
targetH160H160
inputBytesVec<u8>
valueU256U256
gas_limitu64u64
max_fee_per_gasU256U256
max_priority_fee_per_gasOption&lt;U256&gt;Option<U256>
nonceOption&lt;U256&gt;Option<U256>
access_listVec&lt;(H160,Vec&lt;H256&gt;)&gt;Vec<(H160, Vec<H256>)>

Call index: 1

EVM.create ​

See [Pallet::create].

ts
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>)>)
ArgumentTypeDoc
sourceH160H160
initBytesVec<u8>
valueU256U256
gas_limitu64u64
max_fee_per_gasU256U256
max_priority_fee_per_gasOption&lt;U256&gt;Option<U256>
nonceOption&lt;U256&gt;Option<U256>
access_listVec&lt;(H160,Vec&lt;H256&gt;)&gt;Vec<(H160, Vec<H256>)>

Call index: 2

EVM.create2 ​

See [Pallet::create2].

ts
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>)>)
ArgumentTypeDoc
sourceH160H160
initBytesVec<u8>
saltH256H256
valueU256U256
gas_limitu64u64
max_fee_per_gasU256U256
max_priority_fee_per_gasOption&lt;U256&gt;Option<U256>
nonceOption&lt;U256&gt;Option<U256>
access_listVec&lt;(H160,Vec&lt;H256&gt;)&gt;Vec<(H160, Vec<H256>)>

Call index: 3

Events ​

EVM.Log ​

Ethereum events from contracts.

FieldTypeDoc
log{"address":"H160","topics":"Vec&lt;H256&gt;","data":"Bytes"}

EVM.Created ​

A contract has been created at given address.

FieldTypeDoc
addressH160

EVM.CreatedFailed ​

A contract was attempted to be created, but the execution failed.

FieldTypeDoc
addressH160

EVM.Executed ​

A contract has been executed successfully with states applied.

FieldTypeDoc
addressH160

EVM.ExecutedFailed ​

A contract has been executed with errors. States are reverted with only gas fees applied.

FieldTypeDoc
addressH160

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.

ts
await api.query.eVM.stagedEvmActivities()

Returns: Vec<PalletEvmStagedEvmActivity>

Modifier: Default

EVM.AccountCodes ​

ts
await api.query.eVM.accountCodes(key1)
  • Key: H160 (hasher: Blake2_128Concat)
  • Returns: Bytes

Modifier: Default

EVM.AccountCodesMetadata ​

ts
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 ​

ts
await api.query.eVM.accountStorages(key1, key2)
  • Key: (H160,H256) (hashers: Blake2_128Concat, Blake2_128Concat)
  • Returns: H256

Modifier: Default

Source: live chain metadata from wss://root.rootnet.live/archive/ws · captured 2026-05-02

Curated independently by Codeology. Source-attributed reference for The Root Network. Not affiliated with Futureverse / TRN Labs.