UNPKG

@tangany/waas

Version:

node.js SDK for Tangany Wallet as a Service API

22 lines (21 loc) 916 B
import { Waas } from "./waas"; import { IWaasMethod } from "./waas-method"; import { Wallet } from "./wallet"; /** * Base for classes that provide an interface for wallet actions, e.g. on the Bitcoin or Ethereum blockchain. */ export declare abstract class BlockchainWallet implements IWaasMethod { waas: Waas; readonly walletInstance: Wallet; constructor(waas: Waas, walletInstance: Wallet); get wallet(): string | undefined; /** * Determines the request id from an server response to an asynchronous request. * The server always returns the location of the server resource that represents the status of the * asynchronous request. From this, only the ID is extracted. * @param serverResponse - Object that represents the raw server response of an asynchronous endpoint */ protected extractRequestId(serverResponse: { [key: string]: any; }): string; }