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 hidden (Show)

xrpl.js - 0.10.0-rc1

Published by geertweening almost 10 years ago

  • Transaction changes
  • Important tef* and tel* and errors will no longer be presented as
    final. Rather than considering these errors final, ripple-lib will wait until
    the LastLedgerSequence specified in the transaction is exceeded. This makes
    failures more definitive, and ensures that no transaction will resubmit
    indefinitely.
  • A new, final tej-class error is introduced to account for transactions that
    are locally determined to have expired: tejMaxLedger.
  • Allow per transaction fees to be set, transaction.setFixedFee()
  • Improve memo support
    • Add MemoFormat property for memo
    • Enforce MemoFormat and MemoType to be valid ASCII
    • Support text and json MemoFormat
  • Update jscl library
    • Improved entropy by taking advantage of platform crypto
    • Use jscl's k256 curve instead of altering the c256 curve with k256 configuration
    • deprecated: the c256 curve is linked to the k256 curve to provide backwards compatibility, this link will be removed in the future
xrpl.js - 0.10.0-rc2

Published by geertweening almost 10 years ago

  • Transaction changes
  • Important tef* and tel* and errors will no longer be presented as
    final. Rather than considering these errors final, ripple-lib will wait until
    the LastLedgerSequence specified in the transaction is exceeded. This makes
    failures more definitive, and ensures that no transaction will resubmit
    indefinitely.
  • A new, final tej-class error is introduced to account for transactions that
    are locally determined to have expired: tejMaxLedger.
  • Allow per transaction fees to be set, transaction.setFixedFee()
  • Improve memo support
    • Add MemoFormat property for memo
    • Enforce MemoFormat and MemoType to be valid ASCII
    • Support text and json MemoFormat
  • Update jscl library
    • Improved entropy by taking advantage of platform crypto
    • Use jscl's k256 curve instead of altering the c256 curve with k256 configuration
    • deprecated: the c256 curve is linked to the k256 curve to provide backwards compatibility, this link will be removed in the future
xrpl.js - 0.9.3-rc2

Published by geertweening almost 10 years ago

xrpl.js - 0.9.2

Published by geertweening almost 10 years ago

Example on how to use paging with account_offers:

// A valid `ledger_index` or `ledger_hash` is required to provide a reliable result.
// Results can change between ledger closes, so the provided ledger will be used as base.
var options = {
    account: < rippleAccount >,
    limit: < Number between 10 and 400 >,
    ledger: < valid ledger_index or ledger_hash >
}

// The `marker` comes back in an account request if there are more results than are returned 
// in the current response. The amount of results per response are determined by the `limit`.
if (marker) {
    options.marker = < marker >;
}

var request = remote.requestAccountOffers(options);

Full working example

xrpl.js - 0.9.2-rc6

Published by geertweening almost 10 years ago

Example on how to use paging with account_offers:

// A valid `ledger_index` or `ledger_hash` is required to provide a reliable result.
// Results can change between ledger closes, so the provided ledger will be used as base.
var options = {
    account: < rippleAccount >,
    limit: < Number between 10 and 400 >,
    ledger: < valid ledger_index or ledger_hash >
}

// The `marker` comes back in an account request if there are more results than are returned 
// in the current response. The amount of results per response are determined by the `limit`.
if (marker) {
    options.marker = < marker >;
}

var request = remote.requestAccountOffers(options);

Full working example

xrpl.js - 0.9.2-rc5

Published by geertweening almost 10 years ago

Example on how to use paging with account_offers:

// A valid `ledger_index` or `ledger_hash` is required to provide a reliable result.
// Results can change between ledger closes, so the provided ledger will be used as base.
var options = {
    account: < rippleAccount >,
    limit: < Number between 10 and 400 >,
    ledger: < valid ledger_index or ledger_hash >
}

// The `marker` comes back in an account request if there are more results than are returned 
// in the current response. The amount of results per response are determined by the `limit`.
if (marker) {
    options.marker = < marker >;
}

var request = remote.requestAccountOffers(options);

Full working example

xrpl.js - 0.9.2-rc4

Published by geertweening almost 10 years ago

Example on how to use paging with account_offers:

// A valid `ledger_index` or `ledger_hash` is required to provide a reliable result.
// Results can change between ledger closes, so the provided ledger will be used as base.
var options = {
    account: < rippleAccount >,
    limit: < Number between 10 and 400 >,
    ledger: < valid ledger_index or ledger_hash >
}

// The `marker` comes back in an account request if there are more results than are returned 
// in the current response. The amount of results per response are determined by the `limit`.
if (marker) {
    options.marker = < marker >;
}

var request = remote.requestAccountOffers(options);

Full working example

xrpl.js - 0.9.1

Published by geertweening almost 10 years ago

  • Switch account requests to use ledgerSelect rather than ledgerChoose (278df90)
  • Deprecated setting ident and account_index on account requests (278df90)
  • Change initial account transaction sequence to 1 (a3c1d06)
  • Fix: instance transaction withoute remote (d3b6b81)
  • Fix: account root request ledger argument (bc1f9f8)
  • Fix: rsign.js local signing and example (d3b6b81 and f1004c6)
xrpl.js - 0.9.1-rc3

Published by geertweening almost 10 years ago

  • Switch account requests to use ledgerSelect rather than ledgerChoose (278df90)
  • Deprecated setting ident and account_index on account requests (278df90)
  • Change initial account transaction sequence to 1 (a3c1d06)
  • Fix: instance transaction withoute remote (d3b6b81)
  • Fix: account root request ledger argument (bc1f9f8)
  • Fix: rsign.js local signing and example (d3b6b81 and f1004c6)
xrpl.js - 0.9.1-rc2

Published by geertweening almost 10 years ago

  • Switch account requests to use ledgerSelect rather than ledgerChoose (278df90)
  • Deprecated setting ident and account_index on account requests (278df90)
  • Change initial account transaction sequence to 1 (a3c1d06)
  • Fix: instance transaction withoute remote (d3b6b81)
  • Fix: account root request ledger argument (bc1f9f8)
  • Fix: rsign.js local signing and example (d3b6b81 and f1004c6)
xrpl.js - 0.9.1-rc1

Published by geertweening almost 10 years ago

  • Switch account requests to use ledgerSelect rather than ledgerChoose (278df90)
  • Deprecated setting ident and account_index on account requests (278df90)
  • Fix: instance transaction withoute remote (d3b6b81)
  • Fix: account root request ledger argument (bc1f9f8)
  • Fix: rsign.js local signing and example (d3b6b81 and f1004c6)
xrpl.js - 0.9.0

Published by geertweening almost 10 years ago

  • Add routes to the vault client for KYC attestations (ed2da574)
  • Currency: add show_interest flag to show or hide interest in Currency.to_human() and Currency.to_json() Example use in tests
  • Configurable maxAttempts for transaction submission (d107092)
  • Binformat: added missing TransactionResult options (6abed8d)
  • Breaking change: make maxLoops in seed.get_key optional. Example use in tests (23e473b)
  • Shrinkwrap packages for dependency locking (2dcd5f9)
  • Fix: Amount.to_human() precision bugs (4be209e and 7708c64)
  • Fix: change handling of requestLedger options (57b7030)