Skip to content

EvmAccounts


Calls


claim_account

Attributes

Name Type
eth_address EvmAddress
eth_signature Eip712Signature

Python

call = substrate.compose_call(
    'EvmAccounts', 'claim_account', {
    'eth_address': '[u8; 20]',
    'eth_signature': '[u8; 65]',
}
)

claim_default_account

Attributes

No attributes

Python

call = substrate.compose_call(
    'EvmAccounts', 'claim_default_account', {}
)

Events


ClaimAccount

Attributes

Name Type Composition
account_id T::AccountId AccountId
evm_address EvmAddress [u8; 20]

Storage functions


Accounts

Python

result = substrate.query(
    'EvmAccounts', 'Accounts', ['[u8; 20]']
)

Return value

'AccountId'

EvmAddresses

Python

result = substrate.query(
    'EvmAccounts', 'EvmAddresses', ['AccountId']
)

Return value

'[u8; 20]'

Constants


ChainId

Value

787

Python

constant = substrate.get_constant('EvmAccounts', 'ChainId')

Errors


AccountIdHasMapped


BadSignature


EthAddressHasMapped


InvalidSignature


NonZeroRefCount