EvmAccountTypeApi

class EvmAccountTypeApi(host: String, apiKey: String, requests: PortalRequests)

API class for EVM Account Type functionality.

This class handles all EVM account type-related API calls including querying the account type status, building an authorization list, and building an authorization transaction for EIP-7702 upgrades.

The chainId (e.g. "eip155:11155111") is URL-encoded in the path segment so that the colon becomes %3A.

Parameters

host

The base URL of the API server.

apiKey

The API key used for authentication.

requests

An instance of PortalRequests to handle HTTP requests.

Constructors

Link copied to clipboard
constructor(host: String, apiKey: String, requests: PortalRequests)

Functions

Link copied to clipboard
suspend fun buildAuthorizationList(chainId: String, subsidize: Boolean? = null): Result<BuildAuthorizationListResponse>

Builds the authorization list for EIP-7702 upgrade.

Link copied to clipboard
suspend fun buildAuthorizationTransaction(chainId: String, signature: String, subsidize: Boolean? = null): Result<BuildAuthorizationTransactionResponse>

Builds the authorization transaction for EIP-7702 upgrade.

Link copied to clipboard

Gets the account type status for a given chain.