xrpl.js

A JavaScript/TypeScript API for interacting with the XRP Ledger in Node.js and the browser

Downloads
1.8M
Stars
1.2K
Committers
139

Bot releases are visible (Hide)

xrpl.js - 1.0.0-beta.5

Published by intelliot about 6 years ago

xrpl.js - Add prepareTransaction()

Published by intelliot about 6 years ago

1.0.0-beta.4 (2018-08-10)

xrpl.js - Payment channel parsing

Published by intelliot over 6 years ago

1.0.0-beta.3 (2018-07-17)

  • For payment channel transactions, getTransaction includes a new
    channelChanges property that describes the details of the payment channel.
    (#920)

Bug Fixes

  • A bug caused calculated fees to use too many decimal places. This was fixed by
    rounding fees to 6 decimal places. (#912)
  • When using the Settings transaction to set up a multi-signing list, the
    threshold and weights fields are required. (#909)
  • Docs: Fix the MIMETYPE in examples with memos. (#914)
xrpl.js - 1.0.0-beta.2 - maxFeeXRP

Published by intelliot over 6 years ago

1.0.0-beta.2 (2018-06-08)

Breaking Changes

  • During transaction preparation, there is now a maximum fee. Also, when a transaction is signed, its fee is checked and an error is thrown if the fee exceeds the maximum. The default maxFeeXRP is '2' (2 XRP). Override this value in the RippleAPI constructor.
  • Attempting to prepare a transaction with an exact fee higher than maxFeeXRP causes a ValidationError to be thrown.
  • Attempting to sign a transaction with a fee higher than maxFeeXRP causes a ValidationError to be thrown.
  • The value returned by getFee() is capped at maxFeeXRP.

Other Changes

  • In Transaction Instructions, the maxFee parameter is deprecated. Use the maxFeeXRP parameter in the RippleAPI constructor.

Overview of new fee limit

Most users of ripple-lib do not need to make any code changes to accommodate the new soft limit on fees. The limit is designed to protect against the most severe cases where an unintentionally high fee may be used.

  • When having ripple-lib provide the fee with a prepare* method, a maximum fee of maxFeeXRP (default 2 XRP) applies. You can prepare more economical transactions by setting a lower maxFeeXRP, or support high-priority transactions by setting a higher maxFeeXRP in the RippleAPI constructor.
  • When using sign with a Fee higher than maxFeeXRP, a ValidationError is thrown.

If you have any questions or concerns, please open an issue on GitHub.

xrpl.js - 1.0.0-beta.1 - Improve errors, add xrpToDrops() and dropsToXrp()

Published by intelliot over 6 years ago

1.0.0-beta.1 (2018-05-24)

Breaking Changes

  • Amounts in drops and XRP are checked for validity. Some
    methods may now throw a BigNumber Error or ValidationError if the amount
    is invalid. This may include methods that previously did not throw.
    • Note that 1 drop is equivalent to 0.000001 XRP and 1 XRP is equivalent to 1,000,000 drops.
    • Using drops is recommended. All rippled APIs require XRP amounts to be
      expressed in drops.

Other Changes

  • Allow specifying amounts in drops for consistency with the rippled APIs.
    • Export xrpToDrops() and dropsToXrp() functions.
  • Potentially breaking change: Improve errors. For example, RippledError now includes the full response from
    the rippled server (#687). NotConnectedError
    may be thrown with a different message than before.
xrpl.js - 1.0.0-beta.1 - Add request()

Published by intelliot over 6 years ago

1.0.0-beta.0 (2018-05-10)

xrpl.js - 0.22.0 - Include raw order data for getOrderbook

Published by intelliot over 6 years ago

0.22.0 (2018-05-10)

xrpl.js - 0.21.0 - getAccountObjects and https-proxy-agent

Published by intelliot over 6 years ago

xrpl.js - 0.18.1

Published by intelliot over 6 years ago

Note: A version of RippleAPI built for the browser has been attached to this release. SHA-256 checksums of these files are in HISTORY.md. This can be used when using RippleAPI in a browser; to use it with Node.js, continue to use npm. (#824)

0.18.1 (2018-01-27)

This release also includes the changes from 0.18.0:

0.18.0 (2018-01-25)

xrpl.js - 0.17.9

Published by intelliot almost 7 years ago

New: A version of RippleAPI built for the browser has been attached to this release. This can be used when using RippleAPI in a browser; to use it with Node.js, continue to use npm. (#824)

0.17.9 (2017-11-14)

xrpl.js - 0.17.8

Published by intelliot almost 7 years ago

0.17.8 (2017-11-06)

xrpl.js - 0.17.7

Published by shekenahglory over 7 years ago

replace AJV with jsonschema

xrpl.js - 0.17.6

Published by shekenahglory over 7 years ago

xrpl.js - 0.17.5

Published by shekenahglory over 7 years ago

xrpl.js - 0.17.3

Published by clark800 about 8 years ago

xrpl.js - 0.16.10

Published by alandotcom over 8 years ago

Fixes

e17b6f1 [FIX] on connect return error if server doesn't have validated ledgers