xrpl-txdata
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -417,3 +417,7 @@ "use strict"; | ||
if (connection.readyState === connection.OPEN) { | ||
connection.send(JSON.stringify({ id, command: 'tx', transaction: TxHash })); | ||
connection.send(JSON.stringify({ | ||
id, | ||
command: 'tx', | ||
[TxHash.length > 16 ? 'transaction' : 'ctid']: TxHash | ||
})); | ||
const onTx = (r) => { | ||
@@ -420,0 +424,0 @@ var _a, _b, _c, _d, _e; |
{ | ||
"name": "xrpl-txdata", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Fetch XRPL transaction by hash (+ meta & balances), awaits if required", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -5,2 +5,6 @@ # XRPL Transaction Data fetcher [![npm version](https://badge.fury.io/js/xrpl-txdata.svg)](https://www.npmjs.com/xrpl-txdata) [![GitHub Actions NodeJS status](https://github.com/XRPL-Labs/XrplTxData/workflows/NodeJS/badge.svg?branch=main)](https://github.com/XRPL-Labs/XrplTxData/actions) [![CDNJS Browserified](https://img.shields.io/badge/cdnjs-browserified-blue)](https://cdn.jsdelivr.net/gh/XRPL-Labs/XrplTxData@main/dist/browser.js) [![CDNJS Browserified Minified](https://img.shields.io/badge/cdnjs-minified-orange)](https://cdn.jsdelivr.net/gh/XRPL-Labs/XrplTxData@main/dist/browser.min.js) | ||
# ⚠️ WARNING! PLEASE UPDATE TO THE LATEST VERSION (1.2.3) - previous versions have a bug resulting in sometimes returning UNVALIDATED TRANSACTIONS (without metadata, and may not be included in the closed ledger). | ||
--- | ||
This lib. allows you to fetch XRP ledger transaction outcome from a number of (full history) XRP ledger nodes. This lib. will automatically setup connections when fetching from a selected node takes too long. The first (sane) reply will be returned. | ||
@@ -7,0 +11,0 @@ |
46533
732
243