• WalletsApi - functional programming interface

    Parameters

    Returns {
        createWallet(createWalletRequest?, options?): Promise<((axios?, basePath?) => AxiosPromise<Wallet>)>;
        getWallet(walletId, options?): Promise<((axios?, basePath?) => AxiosPromise<Wallet>)>;
        getWalletBalance(walletId, assetId, options?): Promise<((axios?, basePath?) => AxiosPromise<Balance>)>;
        listWalletBalances(walletId, options?): Promise<((axios?, basePath?) => AxiosPromise<AddressBalanceList>)>;
        listWallets(limit?, page?, options?): Promise<((axios?, basePath?) => AxiosPromise<WalletList>)>;
    }

    • createWallet:function
      • Create a new wallet scoped to the user.

        Parameters

        • Optional createWalletRequest: CreateWalletRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<Wallet>)>

        Summary

        Create a new wallet

        Throws

    • getWallet:function
      • Get wallet

        Parameters

        • walletId: string

          The ID of the wallet to fetch

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<Wallet>)>

        Summary

        Get wallet by ID

        Throws

    • getWalletBalance:function
      • Get the aggregated balance of an asset across all of the addresses in the wallet.

        Parameters

        • walletId: string

          The ID of the wallet to fetch the balance for

        • assetId: string

          The symbol of the asset to fetch the balance for

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<Balance>)>

        Summary

        Get the balance of an asset in the wallet

        Throws

    • listWalletBalances:function
      • List the balances of all of the addresses in the wallet aggregated by asset.

        Parameters

        • walletId: string

          The ID of the wallet to fetch the balances for

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<AddressBalanceList>)>

        Summary

        List wallet balances

        Throws

    • listWallets:function
      • List wallets belonging to the user.

        Parameters

        • Optional limit: number

          A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.

        • Optional page: string

          A cursor for pagination across multiple pages of results. Don&#39;t include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<WalletList>)>

        Summary

        List wallets

        Throws

    Export