react-use-ark
Version:
Hook to easily access ARK blockchain Ѧ API in React application
24 lines (23 loc) • 1.25 kB
TypeScript
import { Network } from '../../common/network';
import { ITransactionsResponse, ITransactionResponse } from './interfaces';
/**
* Get latest transactions.
* @param page The number of the page that will be returned.
* @param limit The number of resources per page.
* @param network
*/
export declare const useTransactionsLatest: (page?: number, limit?: number, fetchOnMount?: boolean, network?: Network) => [import("../../utils/reducer").State<ITransactionsResponse>, () => Promise<void>];
/**
* Find transaction by ID.
* @param id The identifier of the transaction to be retrieved.
* @param network
*/
export declare const useTransactionsFindById: (id: string, fetchOnMount?: boolean, network?: Network) => [import("../../utils/reducer").State<ITransactionResponse>, () => Promise<void>];
/**
* Find transaction by block ID.
* @param blockId Block ID.
* @param page The number of the page that will be returned.
* @param limit The number of resources per page.
* @param network
*/
export declare const useTransactionsFindByBlockId: (blockId: string, page?: number, limit?: number, fetchOnMount?: boolean, network?: Network) => [import("../../utils/reducer").State<ITransactionsResponse>, () => Promise<void>];