@lit-protocol/vincent-scaffold-sdk
Version:
Shared build configuration and utilities for Vincent abilities and policies
31 lines • 1.48 kB
TypeScript
/**
* Handler function for making contract calls
* This function handles the preparation, signing, and sending of contract transactions
*
* @param pkpPublicKey - The PKP public key for transaction signing
* @param pkpEthAddress - The ethereum address derived from PKP
* @param abi - The ABI of the contract function
* @param contractAddress - The contract address
* @param functionName - The name of the function to call
* @param args - The arguments to pass to the function
* @param overrides - Optional transaction overrides (value)
* @param chainId - Optional chain ID (defaults to yellowstoneConfig.id)
* @param eip7702AlchemyApiKey - The Alchemy API key for gas sponsorship
* @param eip7702AlchemyPolicyId - The Alchemy policy ID for gas sponsorship
* @returns The UserOperation hash. You must use the alchemy smartAccountClient.waitForUserOperationTransaction() to convert the userOp into a txHash.
*/
export declare const sponsoredGasContractCall: ({ pkpPublicKey, abi, contractAddress, functionName, args, overrides, chainId, eip7702AlchemyApiKey, eip7702AlchemyPolicyId, }: {
pkpPublicKey: string;
abi: any[];
contractAddress: string;
functionName: string;
args: any[];
overrides?: {
value?: string | number | bigint;
gasLimit?: number;
};
chainId?: number;
eip7702AlchemyApiKey?: string;
eip7702AlchemyPolicyId?: string;
}) => Promise<string>;
//# sourceMappingURL=sponsoredGasContractCall.d.ts.map