UNPKG

@tangany/waas

Version:

node.js SDK for Tangany Wallet as a Service API

29 lines (28 loc) 955 B
import { ITezosOperationStatusOutput, IXtzStatus } from "./interfaces/tezos"; import { Waas } from "./waas"; import { IWaasMethod } from "./waas-method"; import { TezosContract } from "./xtz-contract"; export declare class Tezos implements IWaasMethod { waas: Waas; private readonly transactionHash?; constructor(waas: Waas, transactionHash?: string | undefined); get txHash(): string; /** * Get status and information about Tezos node. */ getStatus(): Promise<IXtzStatus>; /** * Returns the status for a Tezos operation. */ get(): Promise<ITezosOperationStatusOutput>; /** * Returns calls to interact with Tezos smart contracts * @param address - Smart contract address */ contract(address: string): TezosContract; /** * Queries the details for a given transaction hash. * @param txHash - Operation hash of any instance */ private getTransactionDetails; }