Portal’s Android SDK provides EVM Account Type management through theDocumentation Index
Fetch the complete documentation index at: https://docs.portalhq.io/llms.txt
Use this file to discover all available pages before exploring further.
portal.evmAccountType API. This enables checking wallet account types and upgrading EOA wallets to EIP-7702 on supported EVM chains.
Overview
The EVM Account Type functionality allows you to:- Check wallet status to determine the current account type
- Get wallet addresses to retrieve the EOA address and (if applicable) the smart contract address
- Upgrade to EIP-7702 to enable ejecting the Portal wallet’s EOA private key
Prerequisites
Before using EVM Account Type operations, ensure you have:- A properly initialized Portal client
- An active wallet on a supported network (see Create a wallet)
- Understanding of EVM Account Type concepts
- You fund the Upgrade Sponsor address with native tokens for the target chain in the Portal Dashboard
Checking Wallet Status
UsegetStatus to check the current account type of your wallet. The response includes both the account status and metadata about the wallet addresses.
EvmAccountTypeResponse):
data.status: One ofEIP_155_EOA,SMART_CONTRACT, orEIP_7702_EOAmetadata.eoaAddress: The EOA address associated with the walletmetadata.smartContractAddress: Your smart contract wallet address (nullable, may benullfor EOA-only accounts)metadata.chainId: The chain identifier
Getting Wallet Addresses
UsegetAddresses to retrieve the EOA and smart contract addresses for your wallet on a given chain. This is a convenience method that returns the EOA and optional smart contract address, equivalent to the address metadata returned by getStatus.
chainId(String): A CAIP-2 chain identifier (e.g.,"eip155:10143")
EvmAccountTypeAddresses):
eoaAddress(String): The EOA address associated with the walletsmartContractAddress(String?): The smart contract wallet address (nullable,nullfor EOA-only accounts)
Upgrading to EIP-7702
UseupgradeTo7702 to upgrade an EOA wallet to EIP-7702. This method automatically handles the entire upgrade process, including gas subsidization, and returns the transaction hash directly.
- Chain validation: Verifies the chain uses the
eip155namespace - Status check: Confirms the wallet is currently an
EIP_155_EOA - Authorization building: Creates the EIP-7702 authorization list
- Signature: Signs the authorization hash with your wallet
- Transaction submission: Submits the subsidized upgrade transaction (gas is paid by Portal)
- Transaction hash: Returns the on-chain transaction hash
String containing the transaction hash of the submitted upgrade transaction.
Supported Networks
EVM Account Type upgrades are currently available on:- Monad Testnet (
eip155:10143)
Next Steps
- Learn about signing transactions
- Explore Portal API methods
- Review EVM Account Type concepts
- Check out wallet lifecycle management