github XRPLF/xrpl.js 0.9.2-rc6

latest releases: ripple-binary-codec@1.0.1-mpt-beta, xrpl@1.0.1-mpt-beta, xrpl@1.0.0-mpt-beta...
pre-release9 years ago
  • Breaking change: Change accountRequest method signature 6f5d110
  • Add paging behavior for account requests, account_lines and account_offers 722f4e1
  • Add max_fee setter to transactions to set max fee the submitter is willing to pay 24587fa
  • Fix: cap IOU Amounts to their max and min value f05941f

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

Don't miss a new xrpl.js release

NewReleases is sending notifications on new releases.