@tangany/waas
Version:
node.js SDK for Tangany Wallet as a Service API
20 lines (19 loc) • 757 B
TypeScript
import { BlockchainWallet } from "./blockchain-wallet";
import { ITokenBalance } from "./interfaces/ethereum";
import { Waas } from "./waas";
import { Wallet } from "./wallet";
/**
* Instantiates a new Ethereum ERC20 wallet interface
* @param instance - Axios instance created by {@link Waas}
* @param walletInstance - Instance of Wallet class
* @param address - ERC20 token contract address
*/
export declare class EthErc20Wallet extends BlockchainWallet {
readonly address: string;
constructor(waas: Waas, walletInstance: Wallet, address: string);
/**
* Retrieves the token balance for given wallet
* @see [docs]{@link https://docs.tangany.com/#f3c0c795-3cc4-45f4-ac6b-ca03f23e568c}
*/
get(): Promise<ITokenBalance>;
}