• The cardpay SDK will automatically obtain the latest API version that works with the on-chain contracts. In order to obtain an API you need to leverage the getSDK() function and pass to it the API that you wish to work with, as well as any parameters necessary for obtaining an API (usually just an instance of Web3).

    Returns

    a promise for the requested API.

    Example

    import { getSDK } from "@cardstack/cardpay-sdk";
    let safesAPI = await getSDK('Safes', web3);

    Type Parameters

    Parameters

    • sdk: T
    • Rest ...args: any[]

    Returns Promise<MapReturnType<T>>

Generated using TypeDoc