UNPKG

@first-ledger/kit-adapter

Version:

A streamlined toolkit for querying and parsing blockchain network data, encompassing account details, transactions, and metadata, using nu-client with built-in caching for enhanced performance and access efficiency.

35 lines (31 loc) 689 B
import type * as xrpl from 'xrpl'; import type * as models from 'xrpl/dist/npm/src/models'; export interface SortedTransactions { time: string; type: string; date: string; unix: number; txns: ProcessedTxn[]; } export interface AccountTransaction { type: string; hash: string; date?: number; } export type ProcessedTxn = AccountTransaction & { source: string; time?: string; xrpl?: { tx?: models.Transaction & xrpl.ResponseOnlyTxInfo; meta: models.TransactionMetadata | string; ledger_index: number; tx_blob?: string; date?: number; validated: boolean; // details?: parser.Tx; details: undefined; }; evm?: { tx: any; }; };