@base-org/account
Version:
Base Account SDK
15 lines • 743 B
TypeScript
import { SpendPermission } from '../../../../core/rpc/coinbase_fetchSpendPermissions.js';
import { Address, Hex } from 'viem';
type Call = {
to: Address;
data: Hex;
value: bigint;
};
export type PrepareSpendCallDataResponseType = Call[];
export declare const prepareSpendCallData: ((permission: SpendPermission, amount: bigint | "max-remaining-allowance", recipient?: Address, options?: {
rpcUrl?: string;
}) => Promise<PrepareSpendCallDataResponseType>) | ((permission: SpendPermission, amount: bigint | "max-remaining-allowance", recipient?: `0x${string}` | undefined, options?: {
rpcUrl?: string;
} | undefined) => Promise<PrepareSpendCallDataResponseType>);
export {};
//# sourceMappingURL=prepareSpendCallData.d.ts.map