@coinbase/cdp-sdk
Version:
SDK for interacting with the Coinbase Developer Platform Wallet API
15 lines (13 loc) • 480 B
text/typescript
import type { SpendPermissionNetwork } from "../../../openapi-client/index.js";
import type { SpendPermission } from "../../../spend-permissions/types.js";
/**
* Options for using a spend permission
*/
export type UseSpendPermissionOptions = {
/** The spend permission to use */
spendPermission: SpendPermission;
/** The amount to spend (must be ≤ allowance) */
value: bigint;
/** The network to execute the transaction on */
network: SpendPermissionNetwork;
};