upgrade To7702
Upgrades an EIP-155 EOA account to EIP-7702.
This method orchestrates the full upgrade flow:
Validates the chain namespace is "eip155"
Verifies the account is currently an EIP_155_EOA
Builds the authorization list and obtains the hash
Signs the hash using Portal's rawSign
Submits the signed authorization (subsidized) to build the transaction
Returns the on-chain transaction hash
Return
The transaction hash as a String.
Parameters
chain Id
CAIP-2 chain identifier (e.g. "eip155:11155111").
Throws
if the chain is not eip155.
if the account is not EIP_155_EOA.
if the portal reference is null.
if rawSign returns a non-String result.
if transactionHash is null.