@tatumio/tatum-v1
Version:
Tatum API client allows browsers and Node.js clients to interact with Tatum API.
17 lines (16 loc) • 1.06 kB
TypeScript
import { CreateRecord, Currency, TransferBscBep20, TransferCeloOrCeloErc20Token, TransferErc20, TransferTron } from '../model';
/**
* Store any arbitrary data on the blockchain.
* @param testnet if we are on testnet or not
* @param body Body of the transaction.
* @param provider Optional provider to use for broadcasting signed tx to the blockchain.
*/
export declare const storeData: (testnet: boolean, body: CreateRecord, provider?: string | undefined) => Promise<import("../model").TransactionHash>;
/**
* Perform any native asset transaction.
* @param testnet if we are on testnet or not
* @param chain Blockchain to work with. ETH,CELO,MATIC,ONE,TRON,BSC supported now.
* @param body Body of the transaction.
* @param provider Optional provider to use for broadcasting signed tx to the blockchain.
*/
export declare const sendTransaction: (testnet: boolean, chain: Currency, body: TransferErc20 | TransferCeloOrCeloErc20Token | TransferBscBep20 | TransferTron, provider?: string | undefined) => Promise<import("../model").TransactionHash>;