A JavaScript/TypeScript API for interacting with the XRP Ledger in Node.js and the browser
Bot releases are visible (Hide)
Published by geertweening almost 10 years ago
tef*
and tel*
and errors will no longer be presented asLastLedgerSequence
specified in the transaction is exceeded. This makestejMaxLedger
.transaction.setFixedFee()
MemoFormat
property for memoMemoFormat
and MemoType
to be valid ASCIItext
and json
MemoFormatPublished by geertweening almost 10 years ago
tef*
and tel*
and errors will no longer be presented asLastLedgerSequence
specified in the transaction is exceeded. This makestejMaxLedger
.transaction.setFixedFee()
MemoFormat
property for memoMemoFormat
and MemoType
to be valid ASCIItext
and json
MemoFormatPublished by geertweening almost 10 years ago
Published by geertweening almost 10 years ago
Published by geertweening almost 10 years ago
Published by geertweening almost 10 years ago
presubmit
to emit immediately before transaction submittec
errormax_fee
on Remote
to 1 XRP
Published by geertweening almost 10 years ago
presubmit
to emit immediately before transaction submittec
errormax_fee
on Remote
to 1 XRP
Published by geertweening almost 10 years ago
presubmit
to emit immediately before transaction submit (https://github.com/ripple/ripple-lib/commit/7a1feaa89701bf861ab31ebd8ffdc8d8d1474e29)tec
error (https://github.com/ripple/ripple-lib/commit/6bdd4b2670906588852fc4dda457607b4aac08e4)Published by geertweening almost 10 years ago
account_lines
and account_offers
(https://github.com/ripple/ripple-lib/commit/722f4e175dbbf378e51b49142d0285f87acb22d7)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);
Published by geertweening almost 10 years ago
account_lines
and account_offers
https://github.com/ripple/ripple-lib/commit/722f4e175dbbf378e51b49142d0285f87acb22d7
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);
Published by geertweening almost 10 years ago
account_lines
and account_offers
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);
Published by geertweening almost 10 years ago
account_lines
and account_offers
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);
Published by geertweening almost 10 years ago
Published by geertweening almost 10 years ago
Published by geertweening almost 10 years ago
Published by geertweening almost 10 years ago
ident
and account_index
on account requests (278df90)Published by geertweening almost 10 years ago
ident
and account_index
on account requests (278df90)Published by geertweening almost 10 years ago
ident
and account_index
on account requests (278df90)Published by geertweening almost 10 years ago
ident
and account_index
on account requests (278df90)Published by geertweening almost 10 years ago
show_interest
flag to show or hide interest in Currency.to_human()
and Currency.to_json()
Example use in tests