Evm
Calls
call
Issue an EVM call operation. This is similar to a message call transaction in Ethereum.
Namespace
api.tx.evm.callType
function 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>)>
)create
Issue an EVM create operation. This is similar to a contract creation transaction in Ethereum.
Namespace
api.tx.evm.createType
function 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>)>
)create2
Issue an EVM create2 operation.
Namespace
api.tx.evm.create2Type
function 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>)>
)withdraw
Withdraw balance from EVM into currency/balances pallet.
Namespace
api.tx.evm.withdrawType
function withdraw(
address: H160,
value: u128
)Storage
accountCodes
Namespace
api.query.evm.accountCodesType
function accountCodes(
H160
): BytesaccountStorages
Namespace
api.query.evm.accountStoragesType
function accountStorages(
H160,
H256
): H256Events
Created
A contract has been created at given address.
Namespace
api.events.evm.CreatedType
type Created = {
address: H160
}CreatedFailed
A contract was attempted to be created, but the execution failed.
Namespace
api.events.evm.CreatedFailedType
type CreatedFailed = {
address: H160
}Executed
A contract has been executed successfully with states applied.
Namespace
api.events.evm.ExecutedType
type Executed = {
address: H160
}ExecutedFailed
A contract has been executed with errors. States are reverted with only gas fees applied.
Namespace
api.events.evm.ExecutedFailedType
type ExecutedFailed = {
address: H160
}Log
Ethereum events from contracts.
Namespace
api.events.evm.LogType
type Log = {
log: EthereumLog
}Errors
BalanceLow
Not enough balance to perform action
Namespace
api.errors.evm.BalanceLowFeeOverflow
Calculating total fee overflowed
Namespace
api.errors.evm.FeeOverflowGasLimitTooHigh
Gas limit is too high.
Namespace
api.errors.evm.GasLimitTooHighGasLimitTooLow
Gas limit is too low.
Namespace
api.errors.evm.GasLimitTooLowGasPriceTooLow
Gas price is too low.
Namespace
api.errors.evm.GasPriceTooLowInvalidNonce
Nonce is invalid
Namespace
api.errors.evm.InvalidNoncePaymentOverflow
Calculating total payment overflowed
Namespace
api.errors.evm.PaymentOverflowReentrancy
EVM reentrancy
Namespace
api.errors.evm.ReentrancyUndefined
Undefined error.
Namespace
api.errors.evm.UndefinedWithdrawFailed
Withdraw fee failed
Namespace
api.errors.evm.WithdrawFailedundefined