@lit-protocol/vincent-scaffold-sdk
Version:
Shared build configuration and utilities for Vincent abilities and policies
32 lines • 1.32 kB
TypeScript
/**
* Handler function for making contract calls
* This function handles the preparation, signing, and sending of contract transactions
*
* @param provider - The network provider instance
* @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 address - 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, gasLimit)
* @param chainId - Optional chain ID (defaults to yellowstoneConfig.id)
* @param gasBumpPercentage - Optional gas bump percentage (defaults to 0)
* @returns The transaction hash
*/
export declare const contractCall: ({ provider, pkpPublicKey, callerAddress, abi, contractAddress, functionName, args, overrides, chainId, gasBumpPercentage, }: {
provider: any;
pkpPublicKey: string;
callerAddress: string;
abi: any[];
contractAddress: string;
functionName: string;
args: any[];
overrides?: {
value?: string | number | bigint;
gasLimit?: number;
};
chainId?: number;
gasBumpPercentage?: number;
}) => Promise<string>;
//# sourceMappingURL=contractCall.d.ts.map