build Authorization Transaction
suspend fun buildAuthorizationTransaction(chainId: String, signature: String, subsidize: Boolean? = null): Result<BuildAuthorizationTransactionResponse>
Builds the authorization transaction for EIP-7702 upgrade.
Sends the signed authorization hash and optional subsidize flag. When subsidize=true, the API submits the transaction on-chain and returns the transactionHash in the response.
Return
A Result containing BuildAuthorizationTransactionResponse if successful, or an error.
Parameters
chain Id
CAIP-2 chain identifier (e.g. "eip155:11155111").
signature
The signed authorization hash (without 0x prefix).
subsidize
When true, the API submits the transaction on-chain.