Skip to main content
sponsoredGasRawTransaction(__namedParameters): Promise<string>
Defined in: abilityHelpers/gasSponsorship/sponsored-gas-raw-transaction.ts:32 Handler function for making raw transaction calls with gas sponsorship This function handles the preparation, signing, and sending of raw transactions

Parameters

__namedParameters

chainId

number

data

string

eip7702AlchemyApiKey

string

eip7702AlchemyPolicyId

string

pkpPublicKey

string

to

string

value

string

Returns

Promise<string> The UserOperation hash. You must use the alchemy smartAccountClient.waitForUserOperationTransaction() to convert the userOp into a txHash.