UNPKG

@tatumio/tatum-v1

Version:

Tatum API client allows browsers and Node.js clients to interact with Tatum API.

36 lines (35 loc) 1.9 kB
import { BchBlock, BchInfo, BchTx, BlockHash, TransactionHash } from '../model'; /** * Broadcasts signed transaction to the Bch blockchain. <br> * For more details, see <a href="https://apidoc.tatum.io/#operation/BchBroadcast" target="_blank">Tatum API documentation</a> */ export declare const bcashBroadcast: (txData: string, signatureId?: string | undefined) => Promise<TransactionHash>; /** * Returns information about Bch blockchain. <br> * For more details, see <a href="https://apidoc.tatum.io/#operation/BchGetBlockChainInfo" target="_blank">Tatum API documentation</a> */ export declare const bcashGetCurrentBlock: () => Promise<BchInfo>; /** * Returns block by its hash from Bch blockchain. <br> * For more details, see <a href="https://apidoc.tatum.io/#operation/BchGetBlock" target="_blank">Tatum API documentation</a> */ export declare const bcashGetBlock: (hash: string) => Promise<BchBlock>; /** * Returns block hash by index from Bch blockchain. <br> * For more details, see <a href="https://apidoc.tatum.io/#operation/BchGetBlockHash" target="_blank">Tatum API documentation</a> */ export declare const bcashGetBlockHash: (i: number) => Promise<BlockHash>; /** * Returns transactions for address from Bch blockchain. <br> * * @param address For which address will be transactions returned. * @param skip Offset how many transactions will be skipped. * * For more details, see <a href="https://apidoc.tatum.io/#operation/BchGetTxByAddress" target="_blank">Tatum API documentation</a> */ export declare const bcashGetTxForAccount: (address: string, skip?: number) => Promise<BchTx[]>; /** * Returns transaction by hash from Bch blockchain. <br> * For more details, see <a href="https://apidoc.tatum.io/#operation/BchGetRawTransaction" target="_blank">Tatum API documentation</a> */ export declare const bcashGetTransaction: (hash: string) => Promise<BchTx>;