Evm Account Type
EVM Account Type business logic provider.
Orchestrates the EIP-7702 upgrade flow:
Validates the chain namespace is "eip155"
Checks the account is currently an EIP_155_EOA
Builds the authorization list (obtains the hash)
Signs the hash via Portal's rawSign
Builds the authorization transaction with the signature (subsidized)
Returns the transaction hash
Usage Example
val txHash = portal.evmAccountType.upgradeTo7702("eip155:11155111")
println("Upgrade tx: $txHash")Content copied to clipboard
Parameters
api
The API layer for EVM account type endpoints.