mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Delete obsolete files and update LICENSE file
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
sudo: false # use faster docker containers
|
|
||||||
language: node_js
|
|
||||||
node_js:
|
|
||||||
- "0.12"
|
|
||||||
before_script:
|
|
||||||
- sh -c "git log | head -12"
|
|
||||||
script: bin/ci.sh
|
|
||||||
notifications:
|
|
||||||
email: false
|
|
||||||
41
LICENSE
41
LICENSE
@@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2012,2013,2014 Ripple Labs Inc.
|
Copyright (c) 2012-2015 Ripple Labs Inc.
|
||||||
|
|
||||||
Permission to use, copy, modify, and distribute this software for any
|
Permission to use, copy, modify, and distribute this software for any
|
||||||
purpose with or without fee is hereby granted, provided that the above
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
@@ -11,42 +11,3 @@ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|||||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
--------------------------------------
|
|
||||||
|
|
||||||
Some code from Tom Wu:
|
|
||||||
This software is covered under the following copyright:
|
|
||||||
|
|
||||||
Copyright (c) 2003-2005 Tom Wu
|
|
||||||
All Rights Reserved.
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
|
||||||
WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
|
|
||||||
IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
|
|
||||||
INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
|
|
||||||
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
|
|
||||||
THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
|
|
||||||
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
|
|
||||||
In addition, the following condition applies:
|
|
||||||
|
|
||||||
All redistributions must retain an intact copy of this copyright notice
|
|
||||||
and disclaimer.
|
|
||||||
|
|
||||||
Address all questions regarding this license to:
|
|
||||||
|
|
||||||
Tom Wu
|
|
||||||
tjw@cs.Stanford.EDU
|
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
Using Flow typechecking
|
|
||||||
=======================
|
|
||||||
|
|
||||||
Stage 1
|
|
||||||
-------
|
|
||||||
1. Add /* @flow */ to the top of a file you want to typecheck
|
|
||||||
2. Run `gulp typecheck` to generate a list of warnings
|
|
||||||
|
|
||||||
Stage 2
|
|
||||||
-------
|
|
||||||
When all source files have the /* @flow */ header and all warnings have been
|
|
||||||
addressed, remove the `weak: true` option from Gulpfile.js, run
|
|
||||||
`gulp typecheck` and remove all the additional warnings.
|
|
||||||
|
|
||||||
Stage 3
|
|
||||||
-------
|
|
||||||
Add type annotations to the source code and run `gulp strip` to strip
|
|
||||||
the type annotations and write the output to the `out` directory. After
|
|
||||||
type annotations are added, the program must be run from the `out` directory
|
|
||||||
because Node does not understand the annotations
|
|
||||||
252
docs/GUIDES.md
252
docs/GUIDES.md
@@ -1,252 +0,0 @@
|
|||||||
#Guides
|
|
||||||
|
|
||||||
This file provides step-by-step walkthroughs for some of the most common usages of `ripple-lib`.
|
|
||||||
|
|
||||||
###In this document
|
|
||||||
|
|
||||||
1. [Connecting to the Ripple network with `Remote`](GUIDES.md#connecting-to-the-ripple-network)
|
|
||||||
2. [Using `Remote` functions and `Request` objects](GUIDES.md#sending-rippled-API-requests)
|
|
||||||
3. [Listening to the network](GUIDES.md#listening-to-the-network)
|
|
||||||
4. [Submitting a payment to the network](GUIDES.md#submitting-a-payment-to-the-network)
|
|
||||||
* [A note on transaction fees](GUIDES.md#a-note-on-transaction-fees)
|
|
||||||
5. [Submitting a trade offer to the network](GUIDES.md#submitting-a-trade-offer-to-the-network)
|
|
||||||
|
|
||||||
###Also see
|
|
||||||
|
|
||||||
1. [The ripple-lib README](../README.md)
|
|
||||||
2. [The ripple-lib API Reference](REFERENCE.md)
|
|
||||||
|
|
||||||
##Connecting to the Ripple network
|
|
||||||
|
|
||||||
1. [Get ripple-lib](../README.md#installation)
|
|
||||||
2. Load the ripple-lib module into a Node.js file or webpage:
|
|
||||||
```js
|
|
||||||
/* Loading ripple-lib with Node.js */
|
|
||||||
var Remote = require('ripple-lib').Remote;
|
|
||||||
|
|
||||||
/* Loading ripple-lib in a webpage */
|
|
||||||
// var Remote = ripple.Remote;
|
|
||||||
```
|
|
||||||
3. Create a new `Remote` and connect to the network:
|
|
||||||
```js
|
|
||||||
|
|
||||||
var options = {
|
|
||||||
trace : false,
|
|
||||||
trusted: true,
|
|
||||||
local_signing: true,
|
|
||||||
servers: [
|
|
||||||
{ host: 's-west.ripple.com', port: 443, secure: true }
|
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|
||||||
var remote = new Remote(options);
|
|
||||||
|
|
||||||
remote.connect(function(err, res) {
|
|
||||||
/* remote connected, use some remote functions here */
|
|
||||||
});
|
|
||||||
```
|
|
||||||
__NOTE:__ See the API Reference for available [`Remote` options](REFERENCE.md#1-remote-options)
|
|
||||||
|
|
||||||
4. You're connected! Read on to see what to do now.
|
|
||||||
|
|
||||||
##Generating a new Ripple Wallet
|
|
||||||
|
|
||||||
```js
|
|
||||||
var ripple = require('ripple-lib');
|
|
||||||
|
|
||||||
// subscribing to a server allows for more entropy
|
|
||||||
var remote = new ripple.Remote({
|
|
||||||
servers: [
|
|
||||||
{ host: 's1.ripple.com', port: 443, secure: true }
|
|
||||||
]
|
|
||||||
});
|
|
||||||
|
|
||||||
remote.connect(function(err, res) {
|
|
||||||
/* remote connected */
|
|
||||||
});
|
|
||||||
|
|
||||||
// Wait for randomness to have been added.
|
|
||||||
// The entropy of the random generator is increased
|
|
||||||
// by random data received from a rippled
|
|
||||||
remote.once('random', function(err, info) {
|
|
||||||
var wallet = ripple.Wallet.generate();
|
|
||||||
console.log(wallet);
|
|
||||||
// { address: 'rEf4sbVobiiDGExrNj2PkNHGMA8eS6jWh3',
|
|
||||||
// secret: 'shFh4a38EZpEdZxrLifEnVPAoBRce' }
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
##Sending rippled API requests
|
|
||||||
|
|
||||||
`Remote` contains functions for constructing a `Request` object.
|
|
||||||
|
|
||||||
A `Request` is an `EventEmitter` so you can listen for success or failure events -- or, instead, you can provide a callback.
|
|
||||||
|
|
||||||
Here is an example, using [requestServerInfo](https://ripple.com/wiki/JSON_Messages#server_info).
|
|
||||||
|
|
||||||
+ Constructing a `Request` with event listeners
|
|
||||||
```js
|
|
||||||
var request = remote.requestServerInfo();
|
|
||||||
|
|
||||||
request.on('success', function onSuccess(res) {
|
|
||||||
//handle success
|
|
||||||
});
|
|
||||||
|
|
||||||
request.on('error', function onError(err) {
|
|
||||||
//handle error
|
|
||||||
});
|
|
||||||
|
|
||||||
request.request();
|
|
||||||
```
|
|
||||||
|
|
||||||
+ Using a callback:
|
|
||||||
```js
|
|
||||||
remote.request('server_info', function(err, res) {
|
|
||||||
if (err) {
|
|
||||||
//handle error
|
|
||||||
} else {
|
|
||||||
//handle success
|
|
||||||
}
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
__NOTE:__ See the API Reference for available [`Remote` functions](REFERENCE.md#2-remote-functions)
|
|
||||||
|
|
||||||
|
|
||||||
##Listening to the network
|
|
||||||
|
|
||||||
See the [wiki](https://ripple.com/wiki/JSON_Messages#subscribe) for details on subscription requests.
|
|
||||||
|
|
||||||
```js
|
|
||||||
/* Loading ripple-lib with Node.js */
|
|
||||||
var Remote = require('ripple-lib').Remote;
|
|
||||||
|
|
||||||
/* Loading ripple-lib in a webpage */
|
|
||||||
// var Remote = ripple.Remote;
|
|
||||||
|
|
||||||
var remote = new Remote({options});
|
|
||||||
|
|
||||||
remote.connect(function() {
|
|
||||||
var remote = new Remote({
|
|
||||||
// see the API Reference for available options
|
|
||||||
servers: [ 'wss://s1.ripple.com:443' ]
|
|
||||||
});
|
|
||||||
|
|
||||||
remote.connect(function() {
|
|
||||||
console.log('Remote connected');
|
|
||||||
|
|
||||||
var streams = [
|
|
||||||
'ledger',
|
|
||||||
'transactions'
|
|
||||||
];
|
|
||||||
|
|
||||||
var request = remote.requestSubscribe(streams);
|
|
||||||
|
|
||||||
request.on('error', function(error) {
|
|
||||||
console.log('request error: ', error);
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
// the `ledger_closed` and `transaction` will come in on the remote
|
|
||||||
// since the request for subscribe is finalized after the success return
|
|
||||||
// the streaming events will still come in, but not on the initial request
|
|
||||||
remote.on('ledger_closed', function(ledger) {
|
|
||||||
console.log('ledger_closed: ', JSON.stringify(ledger, null, 2));
|
|
||||||
});
|
|
||||||
|
|
||||||
remote.on('transaction', function(transaction) {
|
|
||||||
console.log('transaction: ', JSON.stringify(transaction, null, 2));
|
|
||||||
});
|
|
||||||
|
|
||||||
remote.on('error', function(error) {
|
|
||||||
console.log('remote error: ', error);
|
|
||||||
});
|
|
||||||
|
|
||||||
// fire the request
|
|
||||||
request.request();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
```
|
|
||||||
* https://ripple.com/wiki/RPC_API#transactions_stream_messages
|
|
||||||
* https://ripple.com/wiki/RPC_API#ledger_stream_messages
|
|
||||||
|
|
||||||
##Submitting a payment to the network
|
|
||||||
|
|
||||||
Submitting a payment transaction to the Ripple network involves connecting to a `Remote`, creating a transaction, signing it with the user's secret, and submitting it to the `rippled` server. Note that the `Amount` module is used to convert human-readable amounts like '1 XRP' or '10.50 USD' to the type of Amount object used by the Ripple network.
|
|
||||||
|
|
||||||
```js
|
|
||||||
/* Loading ripple-lib Remote and Amount modules in Node.js */
|
|
||||||
var Remote = require('ripple-lib').Remote;
|
|
||||||
var Amount = require('ripple-lib').Amount;
|
|
||||||
|
|
||||||
/* Loading ripple-lib Remote and Amount modules in a webpage */
|
|
||||||
// var Remote = ripple.Remote;
|
|
||||||
// var Amount = ripple.Amount;
|
|
||||||
|
|
||||||
var MY_ADDRESS = 'rrrMyAddress';
|
|
||||||
var MY_SECRET = 'secret';
|
|
||||||
var RECIPIENT = 'rrrRecipient';
|
|
||||||
var AMOUNT = Amount.from_human('1 USD').set_issuer('rrrIssuer');
|
|
||||||
|
|
||||||
var remote = new Remote({ /* Remote options */ });
|
|
||||||
|
|
||||||
remote.connect(function() {
|
|
||||||
remote.setSecret(MY_ADDRESS, MY_SECRET);
|
|
||||||
|
|
||||||
var transaction = remote.createTransaction('Payment', {
|
|
||||||
account: MY_ADDRESS,
|
|
||||||
destination: RECIPIENT,
|
|
||||||
amount: AMOUNT
|
|
||||||
});
|
|
||||||
|
|
||||||
transaction.submit(function(err, res) {
|
|
||||||
/* handle submission errors / success */
|
|
||||||
});
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
###A note on transaction fees
|
|
||||||
|
|
||||||
A full description of network transaction fees can be found on the [Ripple Wiki](https://ripple.com/wiki/Transaction_Fee).
|
|
||||||
|
|
||||||
In short, transaction fees are very small amounts (on the order of ~10) of [XRP drops](https://ripple.com/wiki/Ripple_credits#Notes_on_drops) spent and destroyed with every transaction. They are largely used to account for network load and prevent spam. With `ripple-lib`, transaction fees are calculated locally by default and the fee you are willing to pay is submitted along with your transaction.
|
|
||||||
|
|
||||||
Since the fee required for a transaction may change between the time when the original fee was calculated and the time when the transaction is submitted, it is wise to use the [`fee_cushion`](REFERENCE.md#1-remote-options) to ensure that the transaction will go through. For example, suppose the original fee calculated for a transaction was 10 XRP drops but at the instant the transaction is submitted the server is experiencing a higher load and it has raised its minimum fee to 12 XRP drops. Without a `fee_cusion`, this transaction would not be processed by the server, but with a `fee_cusion` of, say, 1.5 it would be processed and you would just pay the 2 extra XRP drops.
|
|
||||||
|
|
||||||
The [`max_fee`](REFERENCE.md#1-remote-options) option can be used to avoid submitting a transaction to a server that is charging unreasonably high fees.
|
|
||||||
|
|
||||||
|
|
||||||
##Submitting a trade offer to the network
|
|
||||||
|
|
||||||
Submitting a trade offer to the network is similar to submitting a payment transaction. Here is an example offering to sell 1 USD in exchange for 100 XRP:
|
|
||||||
|
|
||||||
```js
|
|
||||||
/* Loading ripple-lib Remote and Amount modules in Node.js */
|
|
||||||
var Remote = require('ripple-lib').Remote;
|
|
||||||
var Amount = require('ripple-lib').Amount;
|
|
||||||
|
|
||||||
/* Loading ripple-lib Remote and Amount modules in a webpage */
|
|
||||||
// var Remote = ripple.Remote;
|
|
||||||
// var Amount = ripple.Amount;
|
|
||||||
|
|
||||||
var MY_ADDRESS = 'rrrMyAddress';
|
|
||||||
var MY_SECRET = 'secret';
|
|
||||||
var GATEWAY = 'rrrGateWay';
|
|
||||||
|
|
||||||
var remote = new Remote({ /* Remote options */ });
|
|
||||||
|
|
||||||
remote.connect(function() {
|
|
||||||
remote.setSecret(MY_ADDRESS, MY_SECRET);
|
|
||||||
|
|
||||||
var transaction = remote.createTransaction('OfferCreate', {
|
|
||||||
account: MY_ADDRESS,
|
|
||||||
taker_pays: '100',
|
|
||||||
taker_gets: '1/USD/' + GATEWAY
|
|
||||||
});
|
|
||||||
|
|
||||||
transaction.submit(function(err, res) {
|
|
||||||
/* handle submission errors / success */
|
|
||||||
});
|
|
||||||
});
|
|
||||||
```
|
|
||||||
@@ -1,376 +0,0 @@
|
|||||||
#API Reference
|
|
||||||
|
|
||||||
__(More examples coming soon!)__
|
|
||||||
|
|
||||||
###In this document:
|
|
||||||
|
|
||||||
1. [`Remote` options](REFERENCE.md#remote-options)
|
|
||||||
2. [`Request` constructors](REFERENCE.md#request-constructor-functions)
|
|
||||||
+ [Server requests](REFERENCE.md#server-requests)
|
|
||||||
+ [Ledger requests](REFERENCE.md#ledger-requests)
|
|
||||||
+ [Transaction requests](REFERENCE.md#transaction-requests)
|
|
||||||
+ [Account requests](REFERENCE.md#account-requests)
|
|
||||||
+ [Orderbook requests](REFERENCE.md#orderbook-requests)
|
|
||||||
+ [Transaction requests](REFERENCE.md#transaction-requests)
|
|
||||||
3. [`Transaction` constructors](REFERENCE.md#transaction-constructors)
|
|
||||||
+ [Transaction events](REFERENCE.md#transaction-events)
|
|
||||||
4. [Subscriptions](REFERENCE.md#subscriptions)
|
|
||||||
+ [Orderbook subscription](REFERENCE.md#orderbook-subscription)
|
|
||||||
|
|
||||||
###Also see:
|
|
||||||
|
|
||||||
1. [The ripple-lib README](../README.md)
|
|
||||||
2. [The ripple-lib GUIDES](GUIDES.md)a
|
|
||||||
|
|
||||||
#Remote options
|
|
||||||
|
|
||||||
```js
|
|
||||||
/* Loading ripple-lib with Node.js */
|
|
||||||
var Remote = require('ripple-lib').Remote;
|
|
||||||
|
|
||||||
/* Loading ripple-lib in a webpage */
|
|
||||||
// var Remote = ripple.Remote;
|
|
||||||
|
|
||||||
var options = { };
|
|
||||||
|
|
||||||
var remote = new Remote(options);
|
|
||||||
```
|
|
||||||
|
|
||||||
A new `Remote` can be created with the following options:
|
|
||||||
|
|
||||||
+ `trace` *boolean default: false* Log all of the events emitted
|
|
||||||
+ `max_listeners` *number default: 0* Set maxListeners for servers
|
|
||||||
+ `trusted` *boolean default: false*, if remote is trusted (boolean)
|
|
||||||
+ `local_signing` *boolean default: true*
|
|
||||||
+ `local_fee` *boolean default: true* Set whether the transaction fee range will be set locally, see [A note on transaction fees](GUIDES.md#a-note-on-transaction-fees))
|
|
||||||
+ `fee_cushion` *number default: 1.2* Extra fee multiplier to account for async fee changes, see [A note on transaction fees](GUIDES.md#a-note-on-transaction-fees))
|
|
||||||
+ `max_fee` *number default: Infinity* Maximum acceptable transaction fee, see [A note on transaction fees](GUIDES.md#a-note-on-transaction-fees)
|
|
||||||
+ `servers` *array* Array of server objects of the following form:
|
|
||||||
|
|
||||||
```js
|
|
||||||
{
|
|
||||||
host: <string>,
|
|
||||||
port: <number>,
|
|
||||||
secure: <boolean>
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
```js
|
|
||||||
'wss://host:port'
|
|
||||||
```
|
|
||||||
|
|
||||||
#Request constructor functions
|
|
||||||
|
|
||||||
Some requests have helper methods to construct the requests object and set properties on the message object. These will often be the more used requests and the helper methods is the preferred way of constructing these requests.
|
|
||||||
Other request can still be made, but the type will have to be passed in directly to request constructor. See examples below.
|
|
||||||
|
|
||||||
If the method is camelCased and starts with `request`, it's a helper method that wraps the request constructor.
|
|
||||||
|
|
||||||
##Server requests
|
|
||||||
|
|
||||||
**[requestServerInfo([callback])](https://ripple.com/wiki/JSON_Messages#server_info)**
|
|
||||||
|
|
||||||
Returns information about the state of the server. If you are connected to multiple servers and want to select by a particular host, use `request.setServer`. Example:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var request = remote.requestServerInfo();
|
|
||||||
|
|
||||||
request.setServer('wss://s1.ripple.com');
|
|
||||||
|
|
||||||
request.request(function(err, res) {
|
|
||||||
|
|
||||||
});
|
|
||||||
```
|
|
||||||
**[requestPeers([callback])](https://ripple.com/wiki/JSON_Messages#peers)**
|
|
||||||
|
|
||||||
**[requestConnect(ip, port, [callback])](https://ripple.com/wiki/JSON_Messages#connect)**
|
|
||||||
|
|
||||||
**[unl_list([callback])](https://ripple.com/wiki/JSON_Messages#unl_list)**
|
|
||||||
|
|
||||||
```js
|
|
||||||
var request = remote.request('un_list');
|
|
||||||
|
|
||||||
request.setServer('wss://s1.ripple.com');
|
|
||||||
|
|
||||||
request.request(function(err, res) {
|
|
||||||
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
**[unl_add(addr, comment, [callback])](https://ripple.com/wiki/JSON_Messages#unl_add)**
|
|
||||||
|
|
||||||
**[unl_delete(node, [callback])](https://ripple.com/wiki/JSON_Messages#unl_delete)**
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##Ledger requests
|
|
||||||
|
|
||||||
**[requestLedger([opts], [callback])](https://ripple.com/wiki/JSON_Messages#ledger)**
|
|
||||||
|
|
||||||
**[requestLedgerHeader([callback])](https://wiki.ripple.com/JSON_Messages#ledger_data)**
|
|
||||||
|
|
||||||
**[requestLedgerCurrent([callback])](https://ripple.com/wiki/JSON_Messages#ledger_current)**
|
|
||||||
|
|
||||||
**[requestLedgerEntry(type, [callback])](https://ripple.com/wiki/JSON_Messages#ledger_entry)**
|
|
||||||
|
|
||||||
**[requestSubscribe([streams], [callback])](https://ripple.com/wiki/JSON_Messages#subscribe)**
|
|
||||||
|
|
||||||
Start receiving selected streams from the server.
|
|
||||||
|
|
||||||
**[requestUnsubscribe([streams], [callback])](https://ripple.com/wiki/JSON_Messages#unsubscribe)**
|
|
||||||
|
|
||||||
Stop receiving selected streams from the server.
|
|
||||||
|
|
||||||
##Account requests
|
|
||||||
|
|
||||||
**[requestAccountInfo(options, [callback])](https://ripple.com/wiki/JSON_Messages#account_info)**
|
|
||||||
|
|
||||||
Return information about the specified account.
|
|
||||||
|
|
||||||
```
|
|
||||||
var options = {
|
|
||||||
account: 'rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B',
|
|
||||||
ledger: 'validated'
|
|
||||||
};
|
|
||||||
|
|
||||||
var request = remote.requestAccountInfo(options, function(err, info) {
|
|
||||||
/* process info */
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
// response
|
|
||||||
{
|
|
||||||
ledger_current_index: <number>,
|
|
||||||
account_data: {
|
|
||||||
Account: <string>,
|
|
||||||
Balance: <number>,
|
|
||||||
Flags: <number>,
|
|
||||||
LedgerEntryType: <string>,
|
|
||||||
OwnerCount: <number>,
|
|
||||||
PreviousTxnID: <string>,
|
|
||||||
PreviousTxnLgrSeq: <number>,
|
|
||||||
Sequence: <number> ,
|
|
||||||
index: <string>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
**[requestAccountLines(options, [callback])](https://ripple.com/wiki/JSON_Messages#account_lines)**
|
|
||||||
|
|
||||||
**[requestAccountOffers(options, [callback])](https://ripple.com/wiki/JSON_Messages#account_offers)**
|
|
||||||
|
|
||||||
Return the specified account's outstanding offers.
|
|
||||||
|
|
||||||
Requests for both `account_lines` and `account_offers` support paging. The amount of results per response can be configured with the `limit`.
|
|
||||||
The responses can be paged through by using the `marker`.
|
|
||||||
|
|
||||||
```
|
|
||||||
// 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);
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
**[requestAccountTransactions(options, [callback])](https://ripple.com/wiki/JSON_Messages#account_tx)**
|
|
||||||
|
|
||||||
Fetch a list of transactions that applied to this account.
|
|
||||||
|
|
||||||
Options:
|
|
||||||
|
|
||||||
+ `account`
|
|
||||||
+ `ledger_index_min`
|
|
||||||
+ `ledger_index_max`
|
|
||||||
+ `binary` *false*
|
|
||||||
+ `count` *false*
|
|
||||||
+ `descending` *false*
|
|
||||||
+ `offset` *0*
|
|
||||||
+ `limit`
|
|
||||||
+ `forward` *false*
|
|
||||||
+ `fwd_marker`
|
|
||||||
+ `rev_marker`
|
|
||||||
|
|
||||||
**[requestWalletAccounts(seed, [callback])](https://ripple.com/wiki/JSON_Messages#wallet_accounts)**
|
|
||||||
|
|
||||||
Return a list of accounts for a wallet. *Requires trusted remote*
|
|
||||||
|
|
||||||
**requestAccountBalance(account, [ledger], [callback])**
|
|
||||||
|
|
||||||
Get the balance for an account. Returns an [Amount](https://github.com/ripple/ripple-lib/blob/develop/src/js/ripple/amount.js) object.
|
|
||||||
|
|
||||||
**requestAccountFlags(account, [ledger], [callback])**
|
|
||||||
|
|
||||||
Return the flags for an account.
|
|
||||||
|
|
||||||
**requestOwnerCount(account, [ledger], [callback])**
|
|
||||||
|
|
||||||
Return the owner count for an account.
|
|
||||||
|
|
||||||
**requestRippleBalance(account, issuer, currency, [ledger], [callback])**
|
|
||||||
|
|
||||||
Return a request to get a ripple balance
|
|
||||||
|
|
||||||
##Orderbook requests
|
|
||||||
|
|
||||||
**[requestBookOffers(options, [callback])](https://ripple.com/wiki/JSON_Messages#book_offers)**
|
|
||||||
|
|
||||||
Return the offers for an order book, also called a *snapshot*
|
|
||||||
|
|
||||||
```js
|
|
||||||
var options = {
|
|
||||||
gets: {
|
|
||||||
issuer: < issuer >,
|
|
||||||
currency: < currency >
|
|
||||||
},
|
|
||||||
pays: {
|
|
||||||
issuer: < issuer >,
|
|
||||||
currency: < currency >
|
|
||||||
},
|
|
||||||
limit: < limit >
|
|
||||||
};
|
|
||||||
|
|
||||||
var request = remote.requestBookOffers(options, function(err, offers) {
|
|
||||||
// handle offers
|
|
||||||
});
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
##Transaction requests
|
|
||||||
|
|
||||||
**[requestTransactionEntry(hash, [ledger_hash], [callback])](https://ripple.com/wiki/JSON_Messages#transaction_entry)**
|
|
||||||
|
|
||||||
Searches a particular ledger for a transaction hash. Default ledger is the open ledger.
|
|
||||||
|
|
||||||
**[requestTransaction(hash, [callback])](https://ripple.com/wiki/JSON_Messages#tx)**
|
|
||||||
|
|
||||||
Searches ledger history for validated transaction hashes.
|
|
||||||
|
|
||||||
**[requestSign(secret, tx_json, [callback])](https://ripple.com/wiki/JSON_Messages#sign)**
|
|
||||||
|
|
||||||
Sign a transaction. *Requires trusted remote*
|
|
||||||
|
|
||||||
**[requestSubmit([callback])](https://ripple.com/wiki/JSON_Messages#submit)**
|
|
||||||
|
|
||||||
Submit a transaction to the network. This command is used internally to submit transactions with a greater degree of reliability. See [Submitting a payment to the network](GUIDES.md#3-submitting-a-payment-to-the-network) for details.
|
|
||||||
|
|
||||||
**[pathFind(src_account, dst_account, dst_amount, src_currencies)](https://ripple.com/wiki/JSON_Messages#path_find)**
|
|
||||||
|
|
||||||
#Transaction constructors
|
|
||||||
|
|
||||||
Use `remote.createTransaction('TransactionType', [options])` to construct a transaction. To submit, use `transaction.submit([callback])`.
|
|
||||||
|
|
||||||
**Payment**
|
|
||||||
|
|
||||||
```js
|
|
||||||
var transaction = remote.createTransaction('Payment', {
|
|
||||||
account: MY_ADDRESS,
|
|
||||||
destination: DEST_ADDRESS,
|
|
||||||
amount: AMOUNT
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
**AccountSet**
|
|
||||||
|
|
||||||
```js
|
|
||||||
var transaction = remote.createTransaction('AccountSet', {
|
|
||||||
account: MY_ADDRESS,
|
|
||||||
set: 'RequireDest',
|
|
||||||
clear: 'RequireAuth'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
**TrustSet**
|
|
||||||
|
|
||||||
```js
|
|
||||||
var transaction = remote.createTransaction('TrustSet', {
|
|
||||||
account: MY_ADDRESS,
|
|
||||||
limit: '1/USD/rrrrrrrrrrrrrrrrrrrrBZbvji'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
**OfferCreate**
|
|
||||||
|
|
||||||
```js
|
|
||||||
var transaction = remote.createTransaction('OfferCreate', {
|
|
||||||
account: MY_ADDRESS,
|
|
||||||
taker_pays: '1',
|
|
||||||
taker_gets: '1/USD/rrrrrrrrrrrrrrrrrrrrBZbvji'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
##Transaction events
|
|
||||||
|
|
||||||
[Transaction](https://github.com/ripple/ripple-lib/blob/develop/src/js/ripple/transaction.js) objects are EventEmitters. They may emit the following events.
|
|
||||||
|
|
||||||
+ `final` Transaction has erred or succeeded. This event indicates that the transaction has finished processing.
|
|
||||||
+ `error` Transaction has erred. This event is a final state.
|
|
||||||
+ `success` Transaction succeeded. This event is a final state.
|
|
||||||
+ `presubmit` Immediately before transaction is submitted
|
|
||||||
+ `postsubmit` Immediately after transaction is submitted
|
|
||||||
+ `submitted` Transaction has been submitted to the network. The submission may result in a remote error or success.
|
|
||||||
+ `resubmitted` Transaction is beginning resubmission.
|
|
||||||
+ `proposed` Transaction has been submitted *successfully* to the network. The transaction at this point is awaiting validation in a ledger.
|
|
||||||
+ `timeout` Transaction submission timed out. The transaction will be resubmitted.
|
|
||||||
+ `fee_adjusted` Transaction fee has been adjusted during its pending state. The transaction fee will only be adjusted if the remote is configured for local fees, which it is by default.
|
|
||||||
+ `abort` Transaction has been aborted. Transactions are only aborted by manual calls to `#abort`.
|
|
||||||
+ `missing` Four ledgers have closed without detecting validated transaction
|
|
||||||
+ `lost` Eight ledgers have closed without detecting validated transaction. Consider the transaction lost and err/finalize.
|
|
||||||
|
|
||||||
##Complete payment example
|
|
||||||
|
|
||||||
```js
|
|
||||||
remote.setSecret(MY_ADDRESS, MY_SECRET);
|
|
||||||
|
|
||||||
var transaction = remote.createTransaction('Payment', {
|
|
||||||
account: MY_ADDRESS,
|
|
||||||
destination: DEST_ADDRESS,
|
|
||||||
amount: AMOUNT
|
|
||||||
});
|
|
||||||
|
|
||||||
transaction.on('resubmitted', function() {
|
|
||||||
// initial submission failed, resubmitting
|
|
||||||
});
|
|
||||||
|
|
||||||
transaction.submit(function(err, res) {
|
|
||||||
// submission has finalized with either an error or success.
|
|
||||||
// the transaction will not be retried after this point
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
#Amount objects
|
|
||||||
|
|
||||||
Coming Soon
|
|
||||||
|
|
||||||
#Subscriptions
|
|
||||||
|
|
||||||
##Orderbook subscription
|
|
||||||
|
|
||||||
Subscribes to an orderbook (including autobridged books). Send the orderbook on subscribe then notifies updates.
|
|
||||||
Available events: ['transaction', 'model', 'trade', 'offer_added', 'offer_removed', 'offer_changed', 'offer_funds_changed']
|
|
||||||
```js
|
|
||||||
parameters = {
|
|
||||||
currency_pays: <string>,
|
|
||||||
issuer_pays: <string>,
|
|
||||||
currency_gets: <string>,
|
|
||||||
issuer_gets: <string>
|
|
||||||
}
|
|
||||||
```
|
|
||||||
Basic subscription:
|
|
||||||
```js
|
|
||||||
var Orderbook = Remote.book(parameters);
|
|
||||||
Orderbook.on('model', handler);
|
|
||||||
|
|
||||||
```
|
|
||||||
@@ -1,168 +0,0 @@
|
|||||||
ripple-vault-client
|
|
||||||
===================
|
|
||||||
|
|
||||||
A javascript / http client to interact with Ripple Vault servers.
|
|
||||||
|
|
||||||
The purpose of this tool is to enable applications in any javascript
|
|
||||||
environment to login with the ripple vault and access the decrypted
|
|
||||||
data stored using credentials originally obtained at ripple.com
|
|
||||||
|
|
||||||
|
|
||||||
## Vault Client Usage
|
|
||||||
|
|
||||||
vaultClient = new ripple.VaultClient(domain);
|
|
||||||
|
|
||||||
vaultClient.getAuthInfo(username, callback);
|
|
||||||
|
|
||||||
vaultClient.getRippleName(address, url, callback);
|
|
||||||
|
|
||||||
vaultClient.exists(username, callback);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
vaultClient.login(username, password, callback);
|
|
||||||
|
|
||||||
vaultClient.relogin(id, cryptKey, callback);
|
|
||||||
|
|
||||||
vaultClient.unlock(username, password, encryptSecret, callback);
|
|
||||||
|
|
||||||
vaultClient.loginAndUnlock(username, password, callback);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
vaultClient.register(options, callback);
|
|
||||||
|
|
||||||
vaultClient.deleteBlob(options, callback);
|
|
||||||
|
|
||||||
vaultClient.recoverBlob(options, callback);
|
|
||||||
|
|
||||||
vaultClient.rename(options, callback);
|
|
||||||
|
|
||||||
vaultClient.changePassword(options, callback);
|
|
||||||
|
|
||||||
vaultClient.verify(username, token, callback);
|
|
||||||
|
|
||||||
vaultClient.resendEmail(options, callback);
|
|
||||||
|
|
||||||
vaultClient.updateProfile(options, fn);
|
|
||||||
|
|
||||||
|
|
||||||
# Blob Methods
|
|
||||||
|
|
||||||
blob.encrypt();
|
|
||||||
|
|
||||||
blob.decrypt(encryptedBlob);
|
|
||||||
|
|
||||||
blob.encryptSecret(encryptionKey);
|
|
||||||
|
|
||||||
blob.decryptSecret(encryptionKey, secret);
|
|
||||||
|
|
||||||
blob.set(pointer, value, callback);
|
|
||||||
|
|
||||||
blob.unset(pointer, callback);
|
|
||||||
|
|
||||||
blob.extend(pointer, value, callback);
|
|
||||||
|
|
||||||
blob.unshift(pointer, value, callback);
|
|
||||||
|
|
||||||
blob.filter(pointer, field, value, subcommands, callback);
|
|
||||||
|
|
||||||
|
|
||||||
## Identity Vault
|
|
||||||
|
|
||||||
The identity vault stores identity information inside the encrypted
|
|
||||||
blob vault. The identity fields can be additionally encrypted with the
|
|
||||||
unlock key, that encrypts the secret, for added security. Methods are
|
|
||||||
accessed from the 'identity' property of the blob object.
|
|
||||||
|
|
||||||
|
|
||||||
# Identity fields
|
|
||||||
+ name
|
|
||||||
+ entityType (individual, corporation, organization)
|
|
||||||
+ email
|
|
||||||
+ phone
|
|
||||||
+ address
|
|
||||||
+ contact
|
|
||||||
+ line1
|
|
||||||
+ line2
|
|
||||||
+ city
|
|
||||||
+ postalCode
|
|
||||||
+ region - state/province/region
|
|
||||||
+ country
|
|
||||||
+ nationalID
|
|
||||||
+ number
|
|
||||||
+ type (ssn, taxID, passport, driversLicense, other)
|
|
||||||
+ country - issuing country
|
|
||||||
+ birthday
|
|
||||||
+ birthplace
|
|
||||||
|
|
||||||
|
|
||||||
# Identity Methods
|
|
||||||
|
|
||||||
blob.identity.set(pointer, key, value, callback);
|
|
||||||
|
|
||||||
blob.identity.unset(pointer, key, callback);
|
|
||||||
|
|
||||||
blob.identity.get(pointer, key);
|
|
||||||
|
|
||||||
blob.identity.getAll(key);
|
|
||||||
|
|
||||||
blob.identity.getFullAddress(key); //get text string of full address
|
|
||||||
|
|
||||||
|
|
||||||
## Spec Tests
|
|
||||||
|
|
||||||
Run `npm test` to test the high-level behavior specs
|
|
||||||
|
|
||||||
Ripple Txt
|
|
||||||
✓ should get the content of a ripple.txt file from a given domain
|
|
||||||
✓ should get currencies from a ripple.txt file for a given domain
|
|
||||||
✓ should get the domain from a given url
|
|
||||||
|
|
||||||
AuthInfo
|
|
||||||
✓ should get auth info
|
|
||||||
|
|
||||||
VaultClient
|
|
||||||
#initialization
|
|
||||||
✓ should be initialized with a domain
|
|
||||||
✓ should default to ripple.com without a domain
|
|
||||||
#exists
|
|
||||||
✓ should determine if a username exists on the domain
|
|
||||||
#login
|
|
||||||
✓ with username and password should retrive the blob, crypt key, and id
|
|
||||||
#relogin
|
|
||||||
✓ should retrieve the decrypted blob with blob vault url, id, and crypt key
|
|
||||||
#unlock
|
|
||||||
✓ should access the wallet secret using encryption secret, username and password
|
|
||||||
#loginAndUnlock
|
|
||||||
✓ should get the decrypted blob and decrypted secret given name and password
|
|
||||||
#register
|
|
||||||
✓ should create a new blob
|
|
||||||
#deleteBlob
|
|
||||||
✓ should remove an existing blob
|
|
||||||
#updateProfile
|
|
||||||
✓ should update profile parameters associated with a blob
|
|
||||||
|
|
||||||
Blob
|
|
||||||
✓ #set
|
|
||||||
✓ #extend
|
|
||||||
✓ #unset
|
|
||||||
✓ #unshift
|
|
||||||
✓ #filter
|
|
||||||
✓ #consolidate
|
|
||||||
#rename
|
|
||||||
✓ should change the username of a blob
|
|
||||||
#changePassword
|
|
||||||
✓ should change the password and keys of a blob
|
|
||||||
#recoverBlob
|
|
||||||
✓ should recover the blob given a username and secret
|
|
||||||
#verifyEmail
|
|
||||||
✓ should verify an email given a username and token
|
|
||||||
#resendVerifcationEmail
|
|
||||||
✓ should resend a verification given options
|
|
||||||
identity
|
|
||||||
✓ #identity_set
|
|
||||||
✓ #identity_get
|
|
||||||
✓ #identity_getAll
|
|
||||||
✓ #identity_getFullAddress
|
|
||||||
✓ #identity_unset
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
var Benchmark;
|
|
||||||
try {
|
|
||||||
Benchmark = require('benchmark');
|
|
||||||
} catch (e) {
|
|
||||||
console.error("Please install Benchmark.js: npm install benchmark");
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
var sjcl = require('../build/sjcl');
|
|
||||||
var jsbn = require('../src/js/jsbn/jsbn');
|
|
||||||
|
|
||||||
var base = "3f70f29d3f3ae354a6d2536ceafba83cfc787cd91e7acd2b6bde05e62beb8295ae18e3f786726f8d034bbc15bf8331df959f59d431736d5f306aaba63dacec279484e39d76db9b527738072af15730e8b9956a64e8e4dbe868f77d1414a8a8b8bf65380a1f008d39c5fabe1a9f8343929342ab7b4f635bdc52532d764701ff3d8072c475c012ff0c59373e8bc423928d99f58c3a6d9f6ab21ee20bc8e8818fc147db09f60c81906f2c6f73dc69725f075853a89f0cd02a30a8dd86b660ccdeffc292f398efb54088c822774445a6afde471f7dd327ef9996296898a5747726ccaeeceeb2e459df98b4128cb5ab8c7cd20c563f960a1aa770f3c81f13f967b6cc";
|
|
||||||
var exponent = "322e393f76a1c22b147e7d193c00c023afb7c1500b006ff1bc1cc8d391fc38bd";
|
|
||||||
var modulus = "c7f1bc1dfb1be82d244aef01228c1409c198894eca9e21430f1669b4aa3864c9f37f3d51b2b4ba1ab9e80f59d267fda1521e88b05117993175e004543c6e3611242f24432ce8efa3b81f0ff660b4f91c5d52f2511a6f38181a7bf9abeef72db056508bbb4eeb5f65f161dd2d5b439655d2ae7081fcc62fdcb281520911d96700c85cdaf12e7d1f15b55ade867240722425198d4ce39019550c4c8a921fc231d3e94297688c2d77cd68ee8fdeda38b7f9a274701fef23b4eaa6c1a9c15b2d77f37634930386fc20ec291be95aed9956801e1c76601b09c413ad915ff03bfdc0b6b233686ae59e8caf11750b509ab4e57ee09202239baee3d6e392d1640185e1cd";
|
|
||||||
var expected = "5b3823974b3eda87286d3f38499de290bd575d8b02f06720acacf3d50950f9ca0ff6b749f3be03913ddca0b291e0b263bdab6c9cb97e4ab47ee9c235ff20931a8ca358726fab93614e2c549594f5c50b1c979b34f840b6d4fc51d6feb2dd072995421d17862cb405e040fc1ed662a3245a1f97bbafa6d1f7f76c7db6a802e3037acdf01ab5053f5da518d6753477193b9c25e1720519dcb9e2f6e70d5786656d356151845a49861dfc40187eff0e85cd18b1f3f3b97c476472edfa090b868b2388edfffecc521c20df8cebb8aacfb3669b020330dd6ea64b2a3067a972b8f249bccc19347eff43893e916f0949bd5789a5cce0f8b7cd87cece909d679345c0d4";
|
|
||||||
|
|
||||||
var BigInteger = jsbn.BigInteger;
|
|
||||||
var jsbnBase = new BigInteger(base, 16);
|
|
||||||
var jsbnExponent = new BigInteger(exponent, 16);
|
|
||||||
var jsbnModulus = new BigInteger(modulus, 16);
|
|
||||||
|
|
||||||
var bn = sjcl.bn;
|
|
||||||
var sjclBase = new bn(base);
|
|
||||||
var sjclExponent = new bn(exponent);
|
|
||||||
var sjclModulus = new bn(modulus);
|
|
||||||
|
|
||||||
var suite = new Benchmark.Suite;
|
|
||||||
|
|
||||||
// add tests
|
|
||||||
suite.add('jsbn#modPow', function() {
|
|
||||||
jsbnBase.modPow(jsbnExponent, jsbnModulus);
|
|
||||||
});
|
|
||||||
suite.add('sjcl#powermodMontgomery', function() {
|
|
||||||
sjclBase.powermodMontgomery(sjclExponent, sjclModulus);
|
|
||||||
});
|
|
||||||
suite.on('cycle', function(event) {
|
|
||||||
console.log(String(event.target));
|
|
||||||
});
|
|
||||||
suite.on('complete', function() {
|
|
||||||
console.log('Fastest is ' + this.filter('fastest').pluck('name'));
|
|
||||||
});
|
|
||||||
// run async
|
|
||||||
console.log("Running benchmark...");
|
|
||||||
suite.run({ 'async': false });
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
URL="https://www.dropbox.com/s/a0gy7vbb86eeqlq/ledger-full-1000000.json?dl=1"
|
|
||||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
||||||
DEST="$DIR/cache/ledger-full-1000000.json"
|
|
||||||
if [ ! -e "$DEST" ]
|
|
||||||
then
|
|
||||||
echo "Downloading test data..."
|
|
||||||
mkdir -p "$DIR/cache"
|
|
||||||
curl -L "$URL" > "$DEST"
|
|
||||||
fi
|
|
||||||
npm run compile && time node "$DIR/verify_ledger_json.js" "$DEST"
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
/* eslint-disable no-var */
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var fs = require('fs');
|
|
||||||
var ripple = require('../dist/npm')._DEPRECATED;
|
|
||||||
var Amount = ripple.Amount;
|
|
||||||
var Ledger = ripple.Ledger;
|
|
||||||
|
|
||||||
function parse_options(from, flags) {
|
|
||||||
var argv = from.slice();
|
|
||||||
var opts_ = {argv: argv};
|
|
||||||
|
|
||||||
flags.forEach(function(f) {
|
|
||||||
// Do we have the flag?
|
|
||||||
var flag_index = argv.indexOf('--' + f);
|
|
||||||
// normalize the name of the flag
|
|
||||||
var flag = f.replace('-', '_');
|
|
||||||
// opts_ has Boolean value for normalized flag key
|
|
||||||
opts_[flag] = flag_index !== -1;
|
|
||||||
if (opts_[flag]) {
|
|
||||||
// remove the flag from the argv
|
|
||||||
argv.splice(flag_index, 1);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return opts_;
|
|
||||||
}
|
|
||||||
|
|
||||||
var opts = parse_options(process.argv.slice(2), // remove `node` and `this.js`
|
|
||||||
['sanity-test']);
|
|
||||||
|
|
||||||
if (opts.argv.length < 1) {
|
|
||||||
console.error('Usage: scripts/verify_ledger_json path/to/ledger.json');
|
|
||||||
console.error(' optional: --sanity-test (json>binary>json>binary)');
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
var json = fs.readFileSync(opts.argv[0], 'utf-8');
|
|
||||||
var ledger = Ledger.from_json(JSON.parse(json));
|
|
||||||
|
|
||||||
// This will serialize each accountState object to binary and then back to json
|
|
||||||
// before finally serializing for hashing. This is mostly to expose any issues
|
|
||||||
// with ripple-libs binary <--> json codecs.
|
|
||||||
if (opts.sanity_test) {
|
|
||||||
console.log('All accountState nodes will be processed from ' +
|
|
||||||
'json->binary->json->binary. This may take some time ' +
|
|
||||||
'with large ledgers.');
|
|
||||||
}
|
|
||||||
|
|
||||||
// To recompute the hashes of some ledgers, we must allow values that slipped in
|
|
||||||
// before strong policies were in place.
|
|
||||||
Amount.strict_mode = false;
|
|
||||||
|
|
||||||
console.log('Transaction hash in header: ' +
|
|
||||||
ledger.ledger_json.transaction_hash);
|
|
||||||
console.log('Calculated transaction hash: ' +
|
|
||||||
ledger.calc_tx_hash().to_hex());
|
|
||||||
|
|
||||||
console.log('Account state hash in header: ' +
|
|
||||||
ledger.ledger_json.account_hash);
|
|
||||||
|
|
||||||
if (ledger.ledger_json.accountState) {
|
|
||||||
console.log('Calculated account state hash: ' +
|
|
||||||
ledger.calc_account_hash({sanity_test: opts.sanity_test})
|
|
||||||
.to_hex());
|
|
||||||
} else {
|
|
||||||
console.log('Ledger has no accountState');
|
|
||||||
}
|
|
||||||
@@ -5,14 +5,14 @@ const assert = require('assert-diff');
|
|||||||
const setupAPI = require('./setup-api');
|
const setupAPI = require('./setup-api');
|
||||||
const RippleAPI = require('ripple-api').RippleAPI;
|
const RippleAPI = require('ripple-api').RippleAPI;
|
||||||
const validate = RippleAPI._PRIVATE.validate;
|
const validate = RippleAPI._PRIVATE.validate;
|
||||||
const fixtures = require('./fixtures/api');
|
const fixtures = require('./fixtures');
|
||||||
const requests = fixtures.requests;
|
const requests = fixtures.requests;
|
||||||
const responses = fixtures.responses;
|
const responses = fixtures.responses;
|
||||||
const addresses = require('./fixtures/addresses');
|
const addresses = require('./fixtures/addresses');
|
||||||
const hashes = require('./fixtures/hashes');
|
const hashes = require('./fixtures/hashes');
|
||||||
const address = addresses.ACCOUNT;
|
const address = addresses.ACCOUNT;
|
||||||
const utils = RippleAPI._PRIVATE.ledgerUtils;
|
const utils = RippleAPI._PRIVATE.ledgerUtils;
|
||||||
const ledgerClosed = require('./fixtures/api/rippled/ledger-close-newer');
|
const ledgerClosed = require('./fixtures/rippled/ledger-close-newer');
|
||||||
const schemaValidator = RippleAPI._PRIVATE.schemaValidator;
|
const schemaValidator = RippleAPI._PRIVATE.schemaValidator;
|
||||||
|
|
||||||
const orderbook = {
|
const orderbook = {
|
||||||
|
|||||||
141
test/fixtures/base58.json
vendored
141
test/fixtures/base58.json
vendored
@@ -1,141 +0,0 @@
|
|||||||
{
|
|
||||||
"ripple": [
|
|
||||||
{
|
|
||||||
"hex": "",
|
|
||||||
"string": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "61",
|
|
||||||
"string": "pg"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "626262",
|
|
||||||
"string": "2sgV"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "636363",
|
|
||||||
"string": "2PNi"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "73696d706c792061206c6f6e6720737472696e67",
|
|
||||||
"string": "pcEuFj68N1S8n9qHX1tmKpCCFLvp"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "00eb15231dfceb60925886b67d065299925915aeb172c06647",
|
|
||||||
"string": "r4Srf52g9jJgTHDrVXjvLUN8ZuQsiJDN9L"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "516b6fcd0f",
|
|
||||||
"string": "wB8LTmg"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "bf4f89001e670274dd",
|
|
||||||
"string": "sSNosLWLoP8tU"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "572e4794",
|
|
||||||
"string": "sNE7fm"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "ecac89cad93923c02321",
|
|
||||||
"string": "NJDM3diCXwauyw"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "10c8511e",
|
|
||||||
"string": "Rtnzm"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "00000000000000000000",
|
|
||||||
"string": "rrrrrrrrrr"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "801184cd2cdd640ca42cfc3a091c51d549b2f016d454b2774019c2b2d2e08529fd206ec97e",
|
|
||||||
"string": "nHxrnHEGyeFpUCPx1JKepCXJ1UV8nDN5yoeGGEaJZjGbTR8qC5D"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "003c176e659bea0f29a3e9bf7880c112b1b31b4dc826268187",
|
|
||||||
"string": "ra7jcY4BG9GTKhuqpCfyYNbu5CqUzoLMGS"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"bitcoin": [
|
|
||||||
{
|
|
||||||
"hex": "",
|
|
||||||
"string": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "61",
|
|
||||||
"string": "2g"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "626262",
|
|
||||||
"string": "a3gV"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "636363",
|
|
||||||
"string": "aPEr"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "73696d706c792061206c6f6e6720737472696e67",
|
|
||||||
"string": "2cFupjhnEsSn59qHXstmK2ffpLv2"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "00eb15231dfceb60925886b67d065299925915aeb172c06647",
|
|
||||||
"string": "1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "516b6fcd0f",
|
|
||||||
"string": "ABnLTmg"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "bf4f89001e670274dd",
|
|
||||||
"string": "3SEo3LWLoPntC"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "572e4794",
|
|
||||||
"string": "3EFU7m"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "ecac89cad93923c02321",
|
|
||||||
"string": "EJDM8drfXA6uyA"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "10c8511e",
|
|
||||||
"string": "Rt5zm"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "00000000000000000000",
|
|
||||||
"string": "1111111111"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "801184cd2cdd640ca42cfc3a091c51d549b2f016d454b2774019c2b2d2e08529fd206ec97e",
|
|
||||||
"string": "5Hx15HFGyep2CfPxsJKe2fXJsCVn5DEiyoeGGF6JZjGbTRnqfiD"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"hex": "003c176e659bea0f29a3e9bf7880c112b1b31b4dc826268187",
|
|
||||||
"string": "16UjcYNBG9GTK4uq2f7yYEbuifqCzoLMGS"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"invalid": [
|
|
||||||
{
|
|
||||||
"description": "non-base58 string",
|
|
||||||
"string": "invalid"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"description": "non-base58 alphabet",
|
|
||||||
"string": "c2F0b3NoaQo="
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"description": "leading whitespace",
|
|
||||||
"string": " 1111111111"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"description": "trailing whitespace",
|
|
||||||
"string": "1111111111 "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"description": "unexpected character after whitespace",
|
|
||||||
"string": " \t\n\u000b\f\r skip \r\f\u000b\n\t a"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
}
|
|
||||||
741
test/fixtures/binary-account-transaction.json
vendored
741
test/fixtures/binary-account-transaction.json
vendored
@@ -1,741 +0,0 @@
|
|||||||
{
|
|
||||||
"OfferCreate": {
|
|
||||||
"binary": {
|
|
||||||
"ledger_index": 10983428,
|
|
||||||
"meta": "201C00000000F8E311006F561C0662854F6571DD28392C1AF031757BDF2BC0E62C190ABE0BC22C46A2E443FDE824000263F550107B73A610A009249B0CC0D4311E8BA7927B5A34D86634581C5F04D40AEE52AE0064400000032A0D8DB065D4838D7EA4C6800000000000000000000000000042544300000000000A20B3C85F482532A9578DBB3950B85CA06594D1811473DFB1F8FDE93B1E301897694F0DDE56516BDC40E1E1E51100645642EE066C2D6E683C6FDC95C3C0EF88B3D7C10E31E9D98060F517F18AD98217DFE722000000005842EE066C2D6E683C6FDC95C3C0EF88B3D7C10E31E9D98060F517F18AD98217DF821473DFB1F8FDE93B1E301897694F0DDE56516BDC40E1E1E4110064567B73A610A009249B0CC0D4311E8BA7927B5A34D86634581C5F04CE166242F400E72200000000365F04CE166242F400587B73A610A009249B0CC0D4311E8BA7927B5A34D86634581C5F04CE166242F40001110000000000000000000000000000000000000000021100000000000000000000000000000000000000000311000000000000000000000000425443000000000004110A20B3C85F482532A9578DBB3950B85CA06594D1E1E1E3110064567B73A610A009249B0CC0D4311E8BA7927B5A34D86634581C5F04D40AEE52AE00E8365F04D40AEE52AE00587B73A610A009249B0CC0D4311E8BA7927B5A34D86634581C5F04D40AEE52AE000311000000000000000000000000425443000000000004110A20B3C85F482532A9578DBB3950B85CA06594D1E1E1E411006F56CDD61BD2DF2ADF53D0C05C171E2C8D48337BFE63868497BC30C5DCF2D0A03AFFE7220000000024000263E72500A79550330000000000000000340000000000000000550F60460F66E991AE6D77C50435E7FF8915453D411B6E43B38AC6410113B06CDC50107B73A610A009249B0CC0D4311E8BA7927B5A34D86634581C5F04CE166242F400644000000326266D2065D4838D7EA4C6800000000000000000000000000042544300000000000A20B3C85F482532A9578DBB3950B85CA06594D1811473DFB1F8FDE93B1E301897694F0DDE56516BDC40E1E1E51100612500A7974E55329262FE69DD4F191AF0CE075489E7B7BDD273EC5528531D8184E1A73E76B7D356E0A052DA53A0D6F6C16422D206D4E38862ED7A13AE90ED0EF5ED09353C2A7A94E624000263F56240000005F01B0F39E1E7220000000024000263F62D000000096240000005F01AE829811473DFB1F8FDE93B1E301897694F0DDE56516BDC40E1E1F1031000",
|
|
||||||
"tx_blob": "120007228000000024000263F52019000263E764400000032A0D8DB065D4838D7EA4C6800000000000000000000000000042544300000000000A20B3C85F482532A9578DBB3950B85CA06594D1684000000000002710732103CDF7533BF6B6DE8C1AEFC1F2F776F8EDAE08D88C6E1F9B69535D9CDDF3071029744630440220153DDCA438981E498EF3AF383845F74B2CC20602FD1E20546A067C68D026DE6502207E4ECB4A23FFBC274CE0C2D08131F26FDDB6240B2A701C8E49410E0F18595053811473DFB1F8FDE93B1E301897694F0DDE56516BDC40",
|
|
||||||
"validated": true
|
|
||||||
},
|
|
||||||
"parsed": {
|
|
||||||
"validated": true,
|
|
||||||
"meta": {
|
|
||||||
"TransactionIndex": 0,
|
|
||||||
"AffectedNodes": [
|
|
||||||
{
|
|
||||||
"CreatedNode": {
|
|
||||||
"LedgerEntryType": "Offer",
|
|
||||||
"LedgerIndex": "1C0662854F6571DD28392C1AF031757BDF2BC0E62C190ABE0BC22C46A2E443FD",
|
|
||||||
"NewFields": {
|
|
||||||
"Sequence": 156661,
|
|
||||||
"BookDirectory": "7B73A610A009249B0CC0D4311E8BA7927B5A34D86634581C5F04D40AEE52AE00",
|
|
||||||
"TakerPays": "13590433200",
|
|
||||||
"TakerGets": {
|
|
||||||
"value": "1",
|
|
||||||
"currency": "BTC",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
|
|
||||||
},
|
|
||||||
"Account": "rBZgggUbdV7wHF1d7BRu1BLsxQqKHX3SN4"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"LedgerIndex": "42EE066C2D6E683C6FDC95C3C0EF88B3D7C10E31E9D98060F517F18AD98217DF",
|
|
||||||
"FinalFields": {
|
|
||||||
"Flags": 0,
|
|
||||||
"RootIndex": "42EE066C2D6E683C6FDC95C3C0EF88B3D7C10E31E9D98060F517F18AD98217DF",
|
|
||||||
"Owner": "rBZgggUbdV7wHF1d7BRu1BLsxQqKHX3SN4"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DeletedNode": {
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"LedgerIndex": "7B73A610A009249B0CC0D4311E8BA7927B5A34D86634581C5F04CE166242F400",
|
|
||||||
"FinalFields": {
|
|
||||||
"Flags": 0,
|
|
||||||
"ExchangeRate": "5F04CE166242F400",
|
|
||||||
"RootIndex": "7B73A610A009249B0CC0D4311E8BA7927B5A34D86634581C5F04CE166242F400",
|
|
||||||
"TakerPaysCurrency": "0000000000000000000000000000000000000000",
|
|
||||||
"TakerPaysIssuer": "0000000000000000000000000000000000000000",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004254430000000000",
|
|
||||||
"TakerGetsIssuer": "0A20B3C85F482532A9578DBB3950B85CA06594D1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"CreatedNode": {
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"LedgerIndex": "7B73A610A009249B0CC0D4311E8BA7927B5A34D86634581C5F04D40AEE52AE00",
|
|
||||||
"NewFields": {
|
|
||||||
"ExchangeRate": "5F04D40AEE52AE00",
|
|
||||||
"RootIndex": "7B73A610A009249B0CC0D4311E8BA7927B5A34D86634581C5F04D40AEE52AE00",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004254430000000000",
|
|
||||||
"TakerGetsIssuer": "0A20B3C85F482532A9578DBB3950B85CA06594D1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DeletedNode": {
|
|
||||||
"LedgerEntryType": "Offer",
|
|
||||||
"LedgerIndex": "CDD61BD2DF2ADF53D0C05C171E2C8D48337BFE63868497BC30C5DCF2D0A03AFF",
|
|
||||||
"FinalFields": {
|
|
||||||
"Flags": 0,
|
|
||||||
"Sequence": 156647,
|
|
||||||
"PreviousTxnLgrSeq": 10982736,
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"OwnerNode": "0000000000000000",
|
|
||||||
"PreviousTxnID": "0F60460F66E991AE6D77C50435E7FF8915453D411B6E43B38AC6410113B06CDC",
|
|
||||||
"BookDirectory": "7B73A610A009249B0CC0D4311E8BA7927B5A34D86634581C5F04CE166242F400",
|
|
||||||
"TakerPays": "13524954400",
|
|
||||||
"TakerGets": {
|
|
||||||
"value": "1",
|
|
||||||
"currency": "BTC",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
|
|
||||||
},
|
|
||||||
"Account": "rBZgggUbdV7wHF1d7BRu1BLsxQqKHX3SN4"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"LedgerEntryType": "AccountRoot",
|
|
||||||
"PreviousTxnLgrSeq": 10983246,
|
|
||||||
"PreviousTxnID": "329262FE69DD4F191AF0CE075489E7B7BDD273EC5528531D8184E1A73E76B7D3",
|
|
||||||
"LedgerIndex": "E0A052DA53A0D6F6C16422D206D4E38862ED7A13AE90ED0EF5ED09353C2A7A94",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Sequence": 156661,
|
|
||||||
"Balance": "25503141689"
|
|
||||||
},
|
|
||||||
"FinalFields": {
|
|
||||||
"Flags": 0,
|
|
||||||
"Sequence": 156662,
|
|
||||||
"OwnerCount": 9,
|
|
||||||
"Balance": "25503131689",
|
|
||||||
"Account": "rBZgggUbdV7wHF1d7BRu1BLsxQqKHX3SN4"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TransactionResult": "tesSUCCESS"
|
|
||||||
},
|
|
||||||
"tx": {
|
|
||||||
"TransactionType": "OfferCreate",
|
|
||||||
"Flags": 2147483648,
|
|
||||||
"Sequence": 156661,
|
|
||||||
"OfferSequence": 156647,
|
|
||||||
"TakerPays": "13590433200",
|
|
||||||
"TakerGets": {
|
|
||||||
"value": "1",
|
|
||||||
"currency": "BTC",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
|
|
||||||
},
|
|
||||||
"Fee": "10000",
|
|
||||||
"SigningPubKey": "03CDF7533BF6B6DE8C1AEFC1F2F776F8EDAE08D88C6E1F9B69535D9CDDF3071029",
|
|
||||||
"TxnSignature": "30440220153DDCA438981E498EF3AF383845F74B2CC20602FD1E20546A067C68D026DE6502207E4ECB4A23FFBC274CE0C2D08131F26FDDB6240B2A701C8E49410E0F18595053",
|
|
||||||
"Account": "rBZgggUbdV7wHF1d7BRu1BLsxQqKHX3SN4",
|
|
||||||
"hash": "3CC8ED34260911194E8E30543D70A6DF04D3DABC746A546DAED32D22496B478C",
|
|
||||||
"inLedger": 10983428,
|
|
||||||
"ledger_index": 10983428
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PartialPayment": {
|
|
||||||
"binary": {
|
|
||||||
"ledger_index": 11234994,
|
|
||||||
"meta": "201C000000126012D4038D7EA4C680010000000000000000000000005553440000000000625E2F1F09A0D769E05C04FAA64F0D2013306C6AF8E51100612500AB6DED55D6405F3E92213763D9AA7270C0CC940864EFEB7CC6A95723E9BC4F33486994A75653539B9154C83B7D657103C27ABCA0EF1AD3674F6D0B341F20710FC50EC4DC03E6240000016962400000C7C1B0629EE1E72200000000240000016A2D0000001662400000C7C1B033BE8114E81DCB25DAA1DDEFF45145D334C56F12EA63C337E1E1E51100722500AB6DED55D6405F3E92213763D9AA7270C0CC940864EFEB7CC6A95723E9BC4F33486994A7565A9CDBCBDB64CD58DCD79A352E749EE48D6ACCE258F580F01FE326B31EB023DEE66294CDB50C7C41DBBA0000000000000000000000004A505900000000000000000000000000000000000000000000000001E1E722000200003700000000000000433800000000000000006294CD472C93E8BFBD0000000000000000000000004A5059000000000000000000000000000000000000000000000000016680000000000000000000000000000000000000004A50590000000000E5C92828261DBAAC933B6309C6F5C72AF020AFD46780000000000000000000000000000000000000004A50590000000000E81DCB25DAA1DDEFF45145D334C56F12EA63C337E1E1E511006F2500AB6DED55D6405F3E92213763D9AA7270C0CC940864EFEB7CC6A95723E9BC4F33486994A7566CD06C01787F1F75688E5C4CE84E83B73ADC1647EC0A2761D553DA776564D1BBE664D5844871834DEC610000000000000000000000004A50590000000000E5C92828261DBAAC933B6309C6F5C72AF020AFD465D4E3860923E65C0000000000000000000000000055534400000000000A20B3C85F482532A9578DBB3950B85CA06594D1E1E72200020000240000DFA82A1C51809E33000000000000000034000000000000062D50103B95C29205977C2136BBC70F21895F8C8F471C8522BF446E5704488DA40C79F964D5844855628F5EC90000000000000000000000004A50590000000000E5C92828261DBAAC933B6309C6F5C72AF020AFD465D4E3851FD80BB80000000000000000000000000055534400000000000A20B3C85F482532A9578DBB3950B85CA06594D1811488F647BBEC01AE19BE070B8B91063D14CE77F523E1E1E51100722500AB6DED55D6405F3E92213763D9AA7270C0CC940864EFEB7CC6A95723E9BC4F33486994A756785D84438CD44D7BD8234721BC77022E2BE590E38F9AB73C6E3FBC190524EF26E662940E35FA931A000000000000000000000000000055534400000000000000000000000000000000000000000000000001E1E7220002000037000000000000027D380000000000000000629411C37937E080010000000000000000000000005553440000000000000000000000000000000000000000000000000166800000000000000000000000000000000000000055534400000000000A20B3C85F482532A9578DBB3950B85CA06594D167D503E871B540C0000000000000000000000000005553440000000000625E2F1F09A0D769E05C04FAA64F0D2013306C6AE1E1E51100722500AB6E1455E6190463C940CFE3D75B031D95768F55F8F5E163EEB460AE6ED003784FDBC06B567A12DF691E1E8039D53278D20D7CDC88D2C585DDBC4A769CD377CD8FF5C7E6A0E6629544C2582DF5BB4000000000000000000000000055534400000000000000000000000000000000000000000000000001E1E72200220000370000000000000288380000000000000000629544C255D8B8AA400000000000000000000000005553440000000000000000000000000000000000000000000000000166800000000000000000000000000000000000000055534400000000000A20B3C85F482532A9578DBB3950B85CA06594D167D5438D7EA4C68000000000000000000000000000555344000000000088F647BBEC01AE19BE070B8B91063D14CE77F523E1E1E51100722500AB6DED55D6405F3E92213763D9AA7270C0CC940864EFEB7CC6A95723E9BC4F33486994A756ADB3988C0EF801FF788E40AFA5EA28FBF5C6943C65F4651DDA411881E7FBBACFE662D5C3F42A882475860000000000000000000000004A505900000000000000000000000000000000000000000000000001E1E7220011000020123B9ACA0037000000000000000038000000000000004662D5C3F42D583783AE0000000000000000000000004A50590000000000000000000000000000000000000000000000000166D5CAA87BEE5380000000000000000000000000004A5059000000000088F647BBEC01AE19BE070B8B91063D14CE77F5236780000000000000000000000000000000000000004A50590000000000E5C92828261DBAAC933B6309C6F5C72AF020AFD4E1E1F1031000",
|
|
||||||
"tx_blob": "12000022800200002400000169201B00AB6EB461D4838D7EA4C680000000000000000000000000005553440000000000625E2F1F09A0D769E05C04FAA64F0D2013306C6A684000000000002EE069D4844ABF137B17EA0000000000000000000000004A50590000000000E81DCB25DAA1DDEFF45145D334C56F12EA63C337732102AC2A11C997C04EC6A4139E6189111F90E89D05F9A9DDC3E2CA459CEA89C539D374463044022010E0D6884B36694342958C4872D7BADB825F36E6972757870665DD49580949A30220475F4CEA2904D23148AF51F194973AC73BDB986DA94BD9DEF51A5BBB9D7426108114E81DCB25DAA1DDEFF45145D334C56F12EA63C3378314625E2F1F09A0D769E05C04FAA64F0D2013306C6A011201E5C92828261DBAAC933B6309C6F5C72AF020AFD43000000000000000000000000055534400000000000A20B3C85F482532A9578DBB3950B85CA06594D1010A20B3C85F482532A9578DBB3950B85CA06594D1FF01E5C92828261DBAAC933B6309C6F5C72AF020AFD41000000000000000000000000000000000000000003000000000000000000000000055534400000000000A20B3C85F482532A9578DBB3950B85CA06594D1010A20B3C85F482532A9578DBB3950B85CA06594D1FF01E5C92828261DBAAC933B6309C6F5C72AF020AFD4100000000000000000000000000000000000000000300000000000000000000000005553440000000000DD39C650A96EDA48334E70CC4A85B8B2E8502CD301DD39C650A96EDA48334E70CC4A85B8B2E8502CD3FF01E5C92828261DBAAC933B6309C6F5C72AF020AFD4300000000000000000000000005553440000000000DD39C650A96EDA48334E70CC4A85B8B2E8502CD301DD39C650A96EDA48334E70CC4A85B8B2E8502CD300",
|
|
||||||
"validated": true
|
|
||||||
},
|
|
||||||
"parsed": {
|
|
||||||
"meta": {
|
|
||||||
"AffectedNodes": [
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "r4wKTbb8AX5kEhXDvHDvhunDqsLZnXGfL9",
|
|
||||||
"Balance": "857948042174",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerCount": 22,
|
|
||||||
"Sequence": 362
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "AccountRoot",
|
|
||||||
"LedgerIndex": "53539B9154C83B7D657103C27ABCA0EF1AD3674F6D0B341F20710FC50EC4DC03",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": "857948054174",
|
|
||||||
"Sequence": 361
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "D6405F3E92213763D9AA7270C0CC940864EFEB7CC6A95723E9BC4F33486994A7",
|
|
||||||
"PreviousTxnLgrSeq": 11234797
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-37.37431482875837"
|
|
||||||
},
|
|
||||||
"Flags": 131072,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r4wKTbb8AX5kEhXDvHDvhunDqsLZnXGfL9",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"HighNode": "0000000000000000",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"LowNode": "0000000000000043"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "5A9CDBCBDB64CD58DCD79A352E749EE48D6ACCE258F580F01FE326B31EB023DE",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-38.5823992616441"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "D6405F3E92213763D9AA7270C0CC940864EFEB7CC6A95723E9BC4F33486994A7",
|
|
||||||
"PreviousTxnLgrSeq": 11234797
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "rDVBvAQScXrGRGnzrxRrcJPeNLeLeUTAqE",
|
|
||||||
"BookDirectory": "3B95C29205977C2136BBC70F21895F8C8F471C8522BF446E5704488DA40C79F9",
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"Expiration": 475103390,
|
|
||||||
"Flags": 131072,
|
|
||||||
"OwnerNode": "000000000000062D",
|
|
||||||
"Sequence": 57256,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"value": "99.97996"
|
|
||||||
},
|
|
||||||
"TakerPays": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6",
|
|
||||||
"value": "12054.31469825737"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "Offer",
|
|
||||||
"LedgerIndex": "6CD06C01787F1F75688E5C4CE84E83B73ADC1647EC0A2761D553DA776564D1BB",
|
|
||||||
"PreviousFields": {
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"value": "99.98998"
|
|
||||||
},
|
|
||||||
"TakerPays": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6",
|
|
||||||
"value": "12055.52278269025"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "D6405F3E92213763D9AA7270C0CC940864EFEB7CC6A95723E9BC4F33486994A7",
|
|
||||||
"PreviousTxnLgrSeq": 11234797
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-0.05000000000000001"
|
|
||||||
},
|
|
||||||
"Flags": 131072,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "r9y3sFjvdnTMJff1j8k2dodJkwgtghpf1o",
|
|
||||||
"value": "110"
|
|
||||||
},
|
|
||||||
"HighNode": "0000000000000000",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"LowNode": "000000000000027D"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "785D84438CD44D7BD8234721BC77022E2BE590E38F9AB73C6E3FBC190524EF26",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-0.04"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "D6405F3E92213763D9AA7270C0CC940864EFEB7CC6A95723E9BC4F33486994A7",
|
|
||||||
"PreviousTxnLgrSeq": 11234797
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-1339.573870832192"
|
|
||||||
},
|
|
||||||
"Flags": 2228224,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rDVBvAQScXrGRGnzrxRrcJPeNLeLeUTAqE",
|
|
||||||
"value": "1000"
|
|
||||||
},
|
|
||||||
"HighNode": "0000000000000000",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"LowNode": "0000000000000288"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "7A12DF691E1E8039D53278D20D7CDC88D2C585DDBC4A769CD377CD8FF5C7E6A0",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-1339.583890832192"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "E6190463C940CFE3D75B031D95768F55F8F5E163EEB460AE6ED003784FDBC06B",
|
|
||||||
"PreviousTxnLgrSeq": 11234836
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "111290.052087083"
|
|
||||||
},
|
|
||||||
"Flags": 1114112,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"HighNode": "0000000000000046",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rDVBvAQScXrGRGnzrxRrcJPeNLeLeUTAqE",
|
|
||||||
"value": "300000"
|
|
||||||
},
|
|
||||||
"LowNode": "0000000000000000",
|
|
||||||
"LowQualityIn": 1000000000
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "ADB3988C0EF801FF788E40AFA5EA28FBF5C6943C65F4651DDA411881E7FBBACF",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "111288.8440026502"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "D6405F3E92213763D9AA7270C0CC940864EFEB7CC6A95723E9BC4F33486994A7",
|
|
||||||
"PreviousTxnLgrSeq": 11234797
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"DeliveredAmount": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "r9y3sFjvdnTMJff1j8k2dodJkwgtghpf1o",
|
|
||||||
"value": "0.01000000000000001"
|
|
||||||
},
|
|
||||||
"TransactionIndex": 18,
|
|
||||||
"TransactionResult": "tesSUCCESS",
|
|
||||||
"delivered_amount": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "r9y3sFjvdnTMJff1j8k2dodJkwgtghpf1o",
|
|
||||||
"value": "0.01000000000000001"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tx": {
|
|
||||||
"Account": "r4wKTbb8AX5kEhXDvHDvhunDqsLZnXGfL9",
|
|
||||||
"Amount": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "r9y3sFjvdnTMJff1j8k2dodJkwgtghpf1o",
|
|
||||||
"value": "1"
|
|
||||||
},
|
|
||||||
"Destination": "r9y3sFjvdnTMJff1j8k2dodJkwgtghpf1o",
|
|
||||||
"Fee": "12000",
|
|
||||||
"Flags": 2147614720,
|
|
||||||
"LastLedgerSequence": 11234996,
|
|
||||||
"Paths": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"SendMax": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r4wKTbb8AX5kEhXDvHDvhunDqsLZnXGfL9",
|
|
||||||
"value": "1.208084432885738"
|
|
||||||
},
|
|
||||||
"Sequence": 361,
|
|
||||||
"SigningPubKey": "02AC2A11C997C04EC6A4139E6189111F90E89D05F9A9DDC3E2CA459CEA89C539D3",
|
|
||||||
"TransactionType": "Payment",
|
|
||||||
"TxnSignature": "3044022010E0D6884B36694342958C4872D7BADB825F36E6972757870665DD49580949A30220475F4CEA2904D23148AF51F194973AC73BDB986DA94BD9DEF51A5BBB9D742610",
|
|
||||||
"hash": "F1E35F73FC81BE1599FBEE184F39AC4168E4C181C7ED000137E9E3C62E18D8C6",
|
|
||||||
"inLedger": 11234994,
|
|
||||||
"ledger_index": 11234994
|
|
||||||
},
|
|
||||||
"validated": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Payment": {
|
|
||||||
"binary": {
|
|
||||||
"ledger_index": 11234797,
|
|
||||||
"meta": "201C00000003F8E51100612500AA666C55BDB03864DA53C51FE3981DAE091A72289F732FC8A5F3D16F74E7D2036246FA8D5653539B9154C83B7D657103C27ABCA0EF1AD3674F6D0B341F20710FC50EC4DC03E6240000016862400000C7C1B0917EE1E7220000000024000001692D0000001662400000C7C1B0629E8114E81DCB25DAA1DDEFF45145D334C56F12EA63C337E1E1E51100722500A0DB72559926ED5C3974070FCA9B3566B7FBF3BCB7C29FCD8A4435781A4AAAE5778576E5565A9CDBCBDB64CD58DCD79A352E749EE48D6ACCE258F580F01FE326B31EB023DEE66294CE22EC649AF7B70000000000000000000000004A505900000000000000000000000000000000000000000000000001E1E722000200003700000000000000433800000000000000006294CDB50C7C41DBBA0000000000000000000000004A5059000000000000000000000000000000000000000000000000016680000000000000000000000000000000000000004A50590000000000E5C92828261DBAAC933B6309C6F5C72AF020AFD46780000000000000000000000000000000000000004A50590000000000E81DCB25DAA1DDEFF45145D334C56F12EA63C337E1E1E511006F2500AB6CF9556E81745BB5DA1EB60C3FDB988EC5CDFE55AD493482F39A54A6AB66E149DB364B566CD06C01787F1F75688E5C4CE84E83B73ADC1647EC0A2761D553DA776564D1BBE664D584488DA40C79F90000000000000000000000004A50590000000000E5C92828261DBAAC933B6309C6F5C72AF020AFD465D5038D7EA4C6800000000000000000000000000055534400000000000A20B3C85F482532A9578DBB3950B85CA06594D1E1E72200020000240000DFA82A1C51809E33000000000000000034000000000000062D50103B95C29205977C2136BBC70F21895F8C8F471C8522BF446E5704488DA40C79F964D5844871834DEC610000000000000000000000004A50590000000000E5C92828261DBAAC933B6309C6F5C72AF020AFD465D4E3860923E65C0000000000000000000000000055534400000000000A20B3C85F482532A9578DBB3950B85CA06594D1811488F647BBEC01AE19BE070B8B91063D14CE77F523E1E1E51100722500A9FF9E5567550A7B0E398944B5528F678BCCA8A53C1356AF9C4FC8EE863B1CC83965C61A56785D84438CD44D7BD8234721BC77022E2BE590E38F9AB73C6E3FBC190524EF26E662940AA87BEE53800000000000000000000000000055534400000000000000000000000000000000000000000000000001E1E7220002000037000000000000027D38000000000000000062940E35FA931A00000000000000000000000000005553440000000000000000000000000000000000000000000000000166800000000000000000000000000000000000000055534400000000000A20B3C85F482532A9578DBB3950B85CA06594D167D503E871B540C0000000000000000000000000005553440000000000625E2F1F09A0D769E05C04FAA64F0D2013306C6AE1E1E51100722500AB689E55ADE928FA078F53F269317B4FD8BF46C8953D381573BB80231BAC2EB3196DD74A567A12DF691E1E8039D53278D20D7CDC88D2C585DDBC4A769CD377CD8FF5C7E6A0E66295451D7C249ADC4000000000000000000000000055534400000000000000000000000000000000000000000000000001E1E722002200003700000000000002883800000000000000006295451D79CF5DCB400000000000000000000000005553440000000000000000000000000000000000000000000000000166800000000000000000000000000000000000000055534400000000000A20B3C85F482532A9578DBB3950B85CA06594D167D5438D7EA4C68000000000000000000000000000555344000000000088F647BBEC01AE19BE070B8B91063D14CE77F523E1E1E51100722500AB4C9D55ECABF9CF633CF8FA6578A2C6430B3B9BA9611B8A31BC1730D222A6DD413B0CF156ADB3988C0EF801FF788E40AFA5EA28FBF5C6943C65F4651DDA411881E7FBBACFE662D5C3F427B811675E0000000000000000000000004A505900000000000000000000000000000000000000000000000001E1E7220011000020123B9ACA0037000000000000000038000000000000004662D5C3F42A882475860000000000000000000000004A50590000000000000000000000000000000000000000000000000166D5CAA87BEE5380000000000000000000000000004A5059000000000088F647BBEC01AE19BE070B8B91063D14CE77F5236780000000000000000000000000000000000000004A50590000000000E5C92828261DBAAC933B6309C6F5C72AF020AFD4E1E1F1031000",
|
|
||||||
"tx_blob": "12000022800200002400000168201B00AB6DEF61D4038D7EA4C680000000000000000000000000005553440000000000625E2F1F09A0D769E05C04FAA64F0D2013306C6A684000000000002EE069D491C37937E080000000000000000000000000004A50590000000000E81DCB25DAA1DDEFF45145D334C56F12EA63C337732102AC2A11C997C04EC6A4139E6189111F90E89D05F9A9DDC3E2CA459CEA89C539D37446304402204529AC13FDE2AF411F83DFCCCA1A41534C36A73EC56C00B822EF36B037F8D146022013A1EBC759497D9BB352263C50B49A3E8BD83FA174F6F66B1F095E820026E3588114E81DCB25DAA1DDEFF45145D334C56F12EA63C3378314625E2F1F09A0D769E05C04FAA64F0D2013306C6A011201E5C92828261DBAAC933B6309C6F5C72AF020AFD43000000000000000000000000055534400000000000A20B3C85F482532A9578DBB3950B85CA06594D1010A20B3C85F482532A9578DBB3950B85CA06594D1FF01E5C92828261DBAAC933B6309C6F5C72AF020AFD41000000000000000000000000000000000000000003000000000000000000000000055534400000000000A20B3C85F482532A9578DBB3950B85CA06594D1010A20B3C85F482532A9578DBB3950B85CA06594D1FF01E5C92828261DBAAC933B6309C6F5C72AF020AFD4100000000000000000000000000000000000000000300000000000000000000000005553440000000000DD39C650A96EDA48334E70CC4A85B8B2E8502CD301DD39C650A96EDA48334E70CC4A85B8B2E8502CD3FF01E5C92828261DBAAC933B6309C6F5C72AF020AFD4300000000000000000000000005553440000000000DD39C650A96EDA48334E70CC4A85B8B2E8502CD301DD39C650A96EDA48334E70CC4A85B8B2E8502CD300",
|
|
||||||
"validated": true
|
|
||||||
},
|
|
||||||
"parsed": {
|
|
||||||
"meta": {
|
|
||||||
"AffectedNodes": [
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "r4wKTbb8AX5kEhXDvHDvhunDqsLZnXGfL9",
|
|
||||||
"Balance": "857948054174",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerCount": 22,
|
|
||||||
"Sequence": 361
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "AccountRoot",
|
|
||||||
"LedgerIndex": "53539B9154C83B7D657103C27ABCA0EF1AD3674F6D0B341F20710FC50EC4DC03",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": "857948066174",
|
|
||||||
"Sequence": 360
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "BDB03864DA53C51FE3981DAE091A72289F732FC8A5F3D16F74E7D2036246FA8D",
|
|
||||||
"PreviousTxnLgrSeq": 11167340
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-38.5823992616441"
|
|
||||||
},
|
|
||||||
"Flags": 131072,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r4wKTbb8AX5kEhXDvHDvhunDqsLZnXGfL9",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"HighNode": "0000000000000000",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"LowNode": "0000000000000043"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "5A9CDBCBDB64CD58DCD79A352E749EE48D6ACCE258F580F01FE326B31EB023DE",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-39.79048369452983"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "9926ED5C3974070FCA9B3566B7FBF3BCB7C29FCD8A4435781A4AAAE5778576E5",
|
|
||||||
"PreviousTxnLgrSeq": 10541938
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "rDVBvAQScXrGRGnzrxRrcJPeNLeLeUTAqE",
|
|
||||||
"BookDirectory": "3B95C29205977C2136BBC70F21895F8C8F471C8522BF446E5704488DA40C79F9",
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"Expiration": 475103390,
|
|
||||||
"Flags": 131072,
|
|
||||||
"OwnerNode": "000000000000062D",
|
|
||||||
"Sequence": 57256,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"value": "99.98998"
|
|
||||||
},
|
|
||||||
"TakerPays": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6",
|
|
||||||
"value": "12055.52278269025"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "Offer",
|
|
||||||
"LedgerIndex": "6CD06C01787F1F75688E5C4CE84E83B73ADC1647EC0A2761D553DA776564D1BB",
|
|
||||||
"PreviousFields": {
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"value": "100"
|
|
||||||
},
|
|
||||||
"TakerPays": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6",
|
|
||||||
"value": "12056.73086712313"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "6E81745BB5DA1EB60C3FDB988EC5CDFE55AD493482F39A54A6AB66E149DB364B",
|
|
||||||
"PreviousTxnLgrSeq": 11234553
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-0.04"
|
|
||||||
},
|
|
||||||
"Flags": 131072,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "r9y3sFjvdnTMJff1j8k2dodJkwgtghpf1o",
|
|
||||||
"value": "110"
|
|
||||||
},
|
|
||||||
"HighNode": "0000000000000000",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"LowNode": "000000000000027D"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "785D84438CD44D7BD8234721BC77022E2BE590E38F9AB73C6E3FBC190524EF26",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-0.03"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "67550A7B0E398944B5528F678BCCA8A53C1356AF9C4FC8EE863B1CC83965C61A",
|
|
||||||
"PreviousTxnLgrSeq": 11141022
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-1439.783890832192"
|
|
||||||
},
|
|
||||||
"Flags": 2228224,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rDVBvAQScXrGRGnzrxRrcJPeNLeLeUTAqE",
|
|
||||||
"value": "1000"
|
|
||||||
},
|
|
||||||
"HighNode": "0000000000000000",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"LowNode": "0000000000000288"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "7A12DF691E1E8039D53278D20D7CDC88D2C585DDBC4A769CD377CD8FF5C7E6A0",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-1439.793910832192"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "ADE928FA078F53F269317B4FD8BF46C8953D381573BB80231BAC2EB3196DD74A",
|
|
||||||
"PreviousTxnLgrSeq": 11233438
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "111288.8440026502"
|
|
||||||
},
|
|
||||||
"Flags": 1114112,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"HighNode": "0000000000000046",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rDVBvAQScXrGRGnzrxRrcJPeNLeLeUTAqE",
|
|
||||||
"value": "300000"
|
|
||||||
},
|
|
||||||
"LowNode": "0000000000000000",
|
|
||||||
"LowQualityIn": 1000000000
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "ADB3988C0EF801FF788E40AFA5EA28FBF5C6943C65F4651DDA411881E7FBBACF",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "111287.6359182174"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "ECABF9CF633CF8FA6578A2C6430B3B9BA9611B8A31BC1730D222A6DD413B0CF1",
|
|
||||||
"PreviousTxnLgrSeq": 11226269
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TransactionIndex": 3,
|
|
||||||
"TransactionResult": "tesSUCCESS",
|
|
||||||
"delivered_amount": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "r9y3sFjvdnTMJff1j8k2dodJkwgtghpf1o",
|
|
||||||
"value": "0.01"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tx": {
|
|
||||||
"Account": "r4wKTbb8AX5kEhXDvHDvhunDqsLZnXGfL9",
|
|
||||||
"Amount": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "r9y3sFjvdnTMJff1j8k2dodJkwgtghpf1o",
|
|
||||||
"value": "0.01"
|
|
||||||
},
|
|
||||||
"Destination": "r9y3sFjvdnTMJff1j8k2dodJkwgtghpf1o",
|
|
||||||
"Fee": "12000",
|
|
||||||
"Flags": 2147614720,
|
|
||||||
"LastLedgerSequence": 11234799,
|
|
||||||
"Paths": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rMAz5ZnK73nyNUL4foAvaxdreczCkG3vA6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"SendMax": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r4wKTbb8AX5kEhXDvHDvhunDqsLZnXGfL9",
|
|
||||||
"value": "5"
|
|
||||||
},
|
|
||||||
"Sequence": 360,
|
|
||||||
"SigningPubKey": "02AC2A11C997C04EC6A4139E6189111F90E89D05F9A9DDC3E2CA459CEA89C539D3",
|
|
||||||
"TransactionType": "Payment",
|
|
||||||
"TxnSignature": "304402204529AC13FDE2AF411F83DFCCCA1A41534C36A73EC56C00B822EF36B037F8D146022013A1EBC759497D9BB352263C50B49A3E8BD83FA174F6F66B1F095E820026E358",
|
|
||||||
"hash": "D6405F3E92213763D9AA7270C0CC940864EFEB7CC6A95723E9BC4F33486994A7",
|
|
||||||
"inLedger": 11234797,
|
|
||||||
"ledger_index": 11234797
|
|
||||||
},
|
|
||||||
"validated": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
95
test/fixtures/binary-ledger-data.json
vendored
95
test/fixtures/binary-ledger-data.json
vendored
@@ -1,95 +0,0 @@
|
|||||||
{
|
|
||||||
"RippleState": {
|
|
||||||
"binary": {
|
|
||||||
"data": "110072220002000025000B657837000000000000003B3800000000000000005587591A63051645F37B85D1FBA55EE69B1C96BFF16904F5C99F03FB93D42D03756280000000000000000000000000000000000000004254430000000000000000000000000000000000000000000000000166800000000000000000000000000000000000000042544300000000000A20B3C85F482532A9578DBB3950B85CA06594D167D4C38D7EA4C680000000000000000000000000004254430000000000C795FDF8A637BCAAEDAD1C434033506236C82A2D",
|
|
||||||
"index": "000103996A3BAD918657F86E12A67D693E8FC8A814DA4B958A244B5F14D93E58"
|
|
||||||
},
|
|
||||||
"parsed": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "BTC",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"Flags": 131072,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "BTC",
|
|
||||||
"issuer": "rKUK9omZqVEnraCipKNFb5q4tuNTeqEDZS",
|
|
||||||
"value": "10"
|
|
||||||
},
|
|
||||||
"HighNode": "0000000000000000",
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "BTC",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"LowNode": "000000000000003B",
|
|
||||||
"PreviousTxnID": "87591A63051645F37B85D1FBA55EE69B1C96BFF16904F5C99F03FB93D42D0375",
|
|
||||||
"PreviousTxnLgrSeq": 746872,
|
|
||||||
"index": "000103996A3BAD918657F86E12A67D693E8FC8A814DA4B958A244B5F14D93E58"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"AccountRoot": {
|
|
||||||
"binary": {
|
|
||||||
"data": "1100612200000000240000000125000DA4192D0000000055CA2EADCF53FEEFE2FF6B47D683A1E33413BC876C7C87669618365C91BD12A42262400000003B9ACA008114D018AF490EB4E476D735159CDEA798B6AF670FF7",
|
|
||||||
"index": "0002D81201E576CF3E0120E2CC35C03E08E22452F498B8C874CD1DF9D3DC305B"
|
|
||||||
},
|
|
||||||
"parsed": {
|
|
||||||
"Account": "rKyK3pQtCTMz6nt6Yxtx8vgju6hLyLWpwh",
|
|
||||||
"Balance": "1000000000",
|
|
||||||
"Flags": 0,
|
|
||||||
"LedgerEntryType": "AccountRoot",
|
|
||||||
"OwnerCount": 0,
|
|
||||||
"PreviousTxnID": "CA2EADCF53FEEFE2FF6B47D683A1E33413BC876C7C87669618365C91BD12A422",
|
|
||||||
"PreviousTxnLgrSeq": 893977,
|
|
||||||
"Sequence": 1,
|
|
||||||
"index": "0002D81201E576CF3E0120E2CC35C03E08E22452F498B8C874CD1DF9D3DC305B"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Offer": {
|
|
||||||
"binary": {
|
|
||||||
"data": "11006F2200000000240002A44625000F26213300000000000000003400000000000000C0555CCD6C8CD4E7BB1E508F05B831A9B4B634E02862435D5E3E3EEF3AB1690331395010FE4D53B02BC5D46DE095166E0667A0F3797F8A782F8A203B570EBC4086D53E0064D5459C5A55C77D00000000000000000000000000494C53000000000092D705968936C419CE614BF264B5EEB1CEA47FF465D48D871095D18000000000000000000000000000425443000000000092D705968936C419CE614BF264B5EEB1CEA47FF481141C40DA3AAC605E30B6CC5891EA6CDDFA0C996CE8",
|
|
||||||
"index": "002B4106648895A68068DF34FC55AAD9BC1DC135FD737A318C582D706EA505A1"
|
|
||||||
},
|
|
||||||
"parsed": {
|
|
||||||
"Account": "rs2PcQ9HX8afGGPsvUxEmTsrKs5D34kwwK",
|
|
||||||
"BookDirectory": "FE4D53B02BC5D46DE095166E0667A0F3797F8A782F8A203B570EBC4086D53E00",
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"Flags": 0,
|
|
||||||
"LedgerEntryType": "Offer",
|
|
||||||
"OwnerNode": "00000000000000C0",
|
|
||||||
"PreviousTxnID": "5CCD6C8CD4E7BB1E508F05B831A9B4B634E02862435D5E3E3EEF3AB169033139",
|
|
||||||
"PreviousTxnLgrSeq": 992801,
|
|
||||||
"Sequence": 173126,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "BTC",
|
|
||||||
"issuer": "rNPRNzBB92BVpAhhZr4iXDTveCgV5Pofm9",
|
|
||||||
"value": "3.80768"
|
|
||||||
},
|
|
||||||
"TakerPays": {
|
|
||||||
"currency": "ILS",
|
|
||||||
"issuer": "rNPRNzBB92BVpAhhZr4iXDTveCgV5Pofm9",
|
|
||||||
"value": "1579.28668368"
|
|
||||||
},
|
|
||||||
"index": "002B4106648895A68068DF34FC55AAD9BC1DC135FD737A318C582D706EA505A1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"DirectoryNode": {
|
|
||||||
"binary": {
|
|
||||||
"data": "110064220000000058001E3B28ABD08E399095EABC6C493E84BFA47B1A6474C04D5289E767A404AEF18214D5A7C190E367A150A2E4A04DE62E08766B8B48C2011360FE8118802AF3344FDC1DEB95D12F8E7C548928C19FEFE8CF7BD14D28E8F0E9EA3B70BB091D385EB6AFF31C52F05498BB70268FC4BEEDDC6B86770A85D74CEA71E676F574B44A1030EBA09A9A29C939550FAF2849171B3422EB521365F9052D00",
|
|
||||||
"index": "001E3B28ABD08E399095EABC6C493E84BFA47B1A6474C04D5289E767A404AEF1"
|
|
||||||
},
|
|
||||||
"parsed": {
|
|
||||||
"Flags": 0,
|
|
||||||
"Indexes": [
|
|
||||||
"FE8118802AF3344FDC1DEB95D12F8E7C548928C19FEFE8CF7BD14D28E8F0E9EA",
|
|
||||||
"3B70BB091D385EB6AFF31C52F05498BB70268FC4BEEDDC6B86770A85D74CEA71",
|
|
||||||
"E676F574B44A1030EBA09A9A29C939550FAF2849171B3422EB521365F9052D00"
|
|
||||||
],
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"Owner": "rL76tmsh1Pgy57B4KMqjqWL7mGhwG24xgv",
|
|
||||||
"RootIndex": "001E3B28ABD08E399095EABC6C493E84BFA47B1A6474C04D5289E767A404AEF1",
|
|
||||||
"index": "001E3B28ABD08E399095EABC6C493E84BFA47B1A6474C04D5289E767A404AEF1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
1160
test/fixtures/binary-transaction.json
vendored
1160
test/fixtures/binary-transaction.json
vendored
File diff suppressed because it is too large
Load Diff
1
test/fixtures/ledger-full-40000.json
vendored
1
test/fixtures/ledger-full-40000.json
vendored
File diff suppressed because one or more lines are too long
1
test/fixtures/ledger-full-7501326.json
vendored
1
test/fixtures/ledger-full-7501326.json
vendored
File diff suppressed because one or more lines are too long
303
test/fixtures/metadata-with-hex-accounts.json
vendored
303
test/fixtures/metadata-with-hex-accounts.json
vendored
@@ -1,303 +0,0 @@
|
|||||||
{
|
|
||||||
"AffectedNodes": [
|
|
||||||
{
|
|
||||||
"DeletedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "rNGySgyyEdRJ6MKmzsZwyhhVeFKdENRGQ6",
|
|
||||||
"BookDirectory": "DFA3B6DDAB58C7E8E5D944E736DA4B7046C30E4F460FD9DE4D08594FC79E1600",
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"Flags": 131072,
|
|
||||||
"OwnerNode": "0000000000000031",
|
|
||||||
"PreviousTxnID": "83CA9AB231B0B4DA8ACF6305A6D7B00AB83404A1FDB8F8BCF7108EB87E0A8196",
|
|
||||||
"PreviousTxnLgrSeq": 10555009,
|
|
||||||
"Sequence": 12370,
|
|
||||||
"TakerGets": "44978350398",
|
|
||||||
"TakerPays": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rQ3qJZwtzi4Zo3nWbmX9gwCke6S8jmHRCn",
|
|
||||||
"value": "1056.990784602728"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "Offer",
|
|
||||||
"LedgerIndex": "0496450E3F46368FB011B8B524605A906C0854441D30420457A81EA89BE649BE"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"Flags": 1114112,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rabVnHuo1eq747GbnLDAJfE9GpsGwcL9Hy",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"HighNode": "0000000000000000",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rGa3Tb6vaMVU5RQMjxk4nsMGSArbu8epGG",
|
|
||||||
"value": "5"
|
|
||||||
},
|
|
||||||
"LowNode": "0000000000000000"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "2DECFAC23B77D5AEA6116C15F5C6D4669EBAEE9E7EE050A40FE2B1E47B6A9419",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "6F35AD78AA196389D15F4BAF054122070506633C1506EF16A48877E2593CCE2D",
|
|
||||||
"PreviousTxnLgrSeq": 10555014
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "1228.52678703286"
|
|
||||||
},
|
|
||||||
"Flags": 1114112,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rabVnHuo1eq747GbnLDAJfE9GpsGwcL9Hy",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"HighNode": "0000000000000076",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rPofp4ruTavGuFnb9AYN2vRPBFxHB7RRsH",
|
|
||||||
"value": "50000"
|
|
||||||
},
|
|
||||||
"LowNode": "0000000000000000"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "4AB2FFDEE65E025AAB54305A161C80D32082574BB0502311F29227089C696388",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "1225.52678703286"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "65C5A92212AA82A89C3824F6F071FE49C95C45DE9113EB51763A217DBACB5B4C",
|
|
||||||
"PreviousTxnLgrSeq": 10554856
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Flags": 0,
|
|
||||||
"Owner": "rP5VvumKn5qqn4RYTMGipmPE9965ARVQNT",
|
|
||||||
"RootIndex": "65E53030C59CD541BB6A8B631F13FA9BBF6F6E28B63D41AA363F23313B34B094"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"LedgerIndex": "65E53030C59CD541BB6A8B631F13FA9BBF6F6E28B63D41AA363F23313B34B094"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "rNGySgyyEdRJ6MKmzsZwyhhVeFKdENRGQ6",
|
|
||||||
"Balance": "335297994919",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerCount": 12,
|
|
||||||
"Sequence": 12379
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "AccountRoot",
|
|
||||||
"LedgerIndex": "6ACA1AAB7CD8877EA63E0C282A37FC212AD24640743F019AC2DD8674E003B741",
|
|
||||||
"PreviousFields": {
|
|
||||||
"OwnerCount": 13
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "83CA9AB231B0B4DA8ACF6305A6D7B00AB83404A1FDB8F8BCF7108EB87E0A8196",
|
|
||||||
"PreviousTxnLgrSeq": 10555009
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-15.68270575272517"
|
|
||||||
},
|
|
||||||
"Flags": 131072,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rGa3Tb6vaMVU5RQMjxk4nsMGSArbu8epGG",
|
|
||||||
"value": "5000"
|
|
||||||
},
|
|
||||||
"HighNode": "0000000000000000",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rQ3qJZwtzi4Zo3nWbmX9gwCke6S8jmHRCn",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"LowNode": "000000000000004A"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "826CF5BFD28F3934B518D0BDF3231259CBD3FD0946E3C3CA0C97D2C75D2D1A09",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-12.68270575272517"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "6F35AD78AA196389D15F4BAF054122070506633C1506EF16A48877E2593CCE2D",
|
|
||||||
"PreviousTxnLgrSeq": 10555014
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Flags": 0,
|
|
||||||
"IndexPrevious": "000000000000002C",
|
|
||||||
"Owner": "rNGySgyyEdRJ6MKmzsZwyhhVeFKdENRGQ6",
|
|
||||||
"RootIndex": "A93C6B313E260AC7C7734DF44F4461075E2C937C936C2B81DA2C9F69D4A0B0F2"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"LedgerIndex": "8D8FB3359BBA810ED5C5894088F2415E322811181ADCC5BB087E829207DFBBEB"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "rP5VvumKn5qqn4RYTMGipmPE9965ARVQNT",
|
|
||||||
"Balance": "25116082528",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerCount": 5,
|
|
||||||
"Sequence": 2197
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "AccountRoot",
|
|
||||||
"LedgerIndex": "8F55B7E947241AD38FD6D47374BF8E7CA7DF177C8B79712B4CAC5E91FD5023FF",
|
|
||||||
"PreviousFields": {
|
|
||||||
"OwnerCount": 6
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "0327747C391C678CA2AC46F422E1E8D307A41E9C0ED5DB2677B51CEBE41BD243",
|
|
||||||
"PreviousTxnLgrSeq": 10554892
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "rauAjp7gUp8xqHnPFDSo72Nc6aMx2k9yDk",
|
|
||||||
"Balance": "233929959",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerCount": 14,
|
|
||||||
"Sequence": 31927
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "AccountRoot",
|
|
||||||
"LedgerIndex": "A27BB98F7C9D32F404B364622645F80480F87C8A91BB13CA9F6E569144C2A5A8",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": "233941959",
|
|
||||||
"Sequence": 31926
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "65C5A92212AA82A89C3824F6F071FE49C95C45DE9113EB51763A217DBACB5B4C",
|
|
||||||
"PreviousTxnLgrSeq": 10554856
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DeletedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"ExchangeRate": "4D08594FC79E1600",
|
|
||||||
"Flags": 0,
|
|
||||||
"RootIndex": "DFA3B6DDAB58C7E8E5D944E736DA4B7046C30E4F460FD9DE4D08594FC79E1600",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000000000000000000000",
|
|
||||||
"TakerGetsIssuer": "0000000000000000000000000000000000000000",
|
|
||||||
"TakerPaysCurrency": "0000000000000000000000005553440000000000",
|
|
||||||
"TakerPaysIssuer": "0520B3C85F482532A9578DBB3950B85CA03594D1"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"LedgerIndex": "DFA3B6DDAB58C7E8E5D944E736DA4B7046C30E4F460FD9DE4D08594FC79E1600"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DeletedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"ExchangeRate": "4D08594FE7353EDE",
|
|
||||||
"Flags": 0,
|
|
||||||
"RootIndex": "DFA3B6DDAB58C7E8E5D944E736DA4B7046C30E4F460FD9DE4D08594FE7353EDE",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000000000000000000000",
|
|
||||||
"TakerGetsIssuer": "0000000000000000000000000000000000000000",
|
|
||||||
"TakerPaysCurrency": "0000000000000000000000005553440000000000",
|
|
||||||
"TakerPaysIssuer": "0520B3C85F482532A9578DBB3950B85CA03594D1"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"LedgerIndex": "DFA3B6DDAB58C7E8E5D944E736DA4B7046C30E4F460FD9DE4D08594FE7353EDE"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-2818.268620725051"
|
|
||||||
},
|
|
||||||
"Flags": 2228224,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rauAjp7gUp8xqHnPFDSo72Nc6aMx2k9yDk",
|
|
||||||
"value": "50000"
|
|
||||||
},
|
|
||||||
"HighNode": "0000000000000000",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rQ3qJZwtzi4Zo3nWbmX9gwCke6S8jmHRCn",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"LowNode": "00000000000001B0"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "FAD28E839AF29C6CCB8DA6DC71510A5BF8A9C34062C128071C7D22E2469B8288",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "-2821.274620725051"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "65C5A92212AA82A89C3824F6F071FE49C95C45DE9113EB51763A217DBACB5B4C",
|
|
||||||
"PreviousTxnLgrSeq": 10554856
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DeletedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "rP5VvumKn5qqn4RYTMGipmPE9965ARVQNT",
|
|
||||||
"BookDirectory": "DFA3B6DDAB58C7E8E5D944E736DA4B7046C30E4F460FD9DE4D08594FE7353EDE",
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerNode": "0000000000000000",
|
|
||||||
"PreviousTxnID": "0327747C391C678CA2AC46F422E1E8D307A41E9C0ED5DB2677B51CEBE41BD243",
|
|
||||||
"PreviousTxnLgrSeq": 10554892,
|
|
||||||
"Sequence": 2196,
|
|
||||||
"TakerGets": "4255320000",
|
|
||||||
"TakerPays": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rQ3qJZwtzi4Zo3nWbmX9gwCke6S8jmHRCn",
|
|
||||||
"value": "100"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "Offer",
|
|
||||||
"LedgerIndex": "FB2E442ED1A5BCA1E237BA133807AE17AED1A7E4B9F404906308ADB01A57609D"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"DeliveredAmount": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rabVnHuo1eq747GbnLDAJfE9GpsGwcL9Hy",
|
|
||||||
"value": "3"
|
|
||||||
},
|
|
||||||
"TransactionIndex": 5,
|
|
||||||
"TransactionResult": "tesSUCCESS"
|
|
||||||
}
|
|
||||||
718
test/fixtures/negative-error.json
vendored
718
test/fixtures/negative-error.json
vendored
@@ -1,718 +0,0 @@
|
|||||||
{
|
|
||||||
"_offers":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"BookDirectory": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FBB5C48403",
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerNode": "000000000000000F",
|
|
||||||
"PreviousTxnID": "8FB8D385FF07349C022524BBD2AC693B38751880CE123505E558ED18FA1043C1",
|
|
||||||
"PreviousTxnLgrSeq": 15658981,
|
|
||||||
"Sequence": 3511992,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66435.49665972557"
|
|
||||||
},
|
|
||||||
"TakerPays": "71365305157",
|
|
||||||
|
|
||||||
"Flags": 0,
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"LedgerEntryType": "Offer",
|
|
||||||
"index": "64DDB33BF3AF700BF8DBD66DDBD7F43495C20B41E55420F5F865538A956999B2",
|
|
||||||
"quality": "1074203.813756165",
|
|
||||||
"owner_funds": "770539.7390873457",
|
|
||||||
"is_fully_funded": true,
|
|
||||||
"taker_gets_funded": "66436.33517689175",
|
|
||||||
"taker_pays_funded": "71366164619"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_offerCounts":
|
|
||||||
{
|
|
||||||
"rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5": 1
|
|
||||||
},
|
|
||||||
"_ownerFundsUnadjusted":
|
|
||||||
{
|
|
||||||
"rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5": "770539.7390873457"
|
|
||||||
},
|
|
||||||
"_ownerFunds":
|
|
||||||
{
|
|
||||||
"rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5": "770539.7390873457"
|
|
||||||
},
|
|
||||||
"_ownerOffersTotal":
|
|
||||||
{
|
|
||||||
"rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5": {
|
|
||||||
"_value": "66436.33517689173",
|
|
||||||
"_is_native": false,
|
|
||||||
"_currency": {
|
|
||||||
"_value": {
|
|
||||||
"limbs": [
|
|
||||||
0,
|
|
||||||
3145728,
|
|
||||||
12336,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"_native": false,
|
|
||||||
"_type": 0,
|
|
||||||
"_interest_start": null,
|
|
||||||
"_interest_period": null,
|
|
||||||
"_iso_code": "000"
|
|
||||||
},
|
|
||||||
"_issuer": {
|
|
||||||
"_value": {
|
|
||||||
"limbs": [
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"_version_byte": 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"message1": {
|
|
||||||
"engine_result": "tesSUCCESS",
|
|
||||||
"engine_result_code": 0,
|
|
||||||
"engine_result_message": "The transaction was applied. Only final in a validated ledger.",
|
|
||||||
"ledger_hash": "12E6264EB6D9287171C904DDEF494C4EE0A7D6B4200C1AC9683C45B349B82622",
|
|
||||||
"ledger_index": 15658982,
|
|
||||||
"meta": {
|
|
||||||
"AffectedNodes": [
|
|
||||||
{
|
|
||||||
"CreatedNode": {
|
|
||||||
"LedgerEntryType": "Offer",
|
|
||||||
"LedgerIndex": "1E5B1F64A949775AC3236139AD28452AF0D32F28D43DBEB0BFEF85D942E69E5A",
|
|
||||||
"NewFields": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"BookDirectory": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"OwnerNode": "000000000000000F",
|
|
||||||
"Sequence": 3512003,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66436.33517689175"
|
|
||||||
},
|
|
||||||
"TakerPays": "71366164619"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DeletedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"BookDirectory": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FBB5C48403",
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerNode": "000000000000000F",
|
|
||||||
"PreviousTxnID": "8FB8D385FF07349C022524BBD2AC693B38751880CE123505E558ED18FA1043C1",
|
|
||||||
"PreviousTxnLgrSeq": 15658981,
|
|
||||||
"Sequence": 3511992,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66435.49665972557"
|
|
||||||
},
|
|
||||||
"TakerPays": "71365305157"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "Offer",
|
|
||||||
"LedgerIndex": "64DDB33BF3AF700BF8DBD66DDBD7F43495C20B41E55420F5F865538A956999B2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Flags": 0,
|
|
||||||
"IndexPrevious": "0000000000000001",
|
|
||||||
"Owner": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"RootIndex": "77FF082487FAF8E65296292EBD5779AC4283909E2E171DFB1BE69F09B765D882"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"LedgerIndex": "669421A08DBE33B9F510ED2AA0C32A71445AA95613BB0DC87DB2A4E6DBF45ED1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"Balance": "1045829766700",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerCount": 33,
|
|
||||||
"Sequence": 3512004
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "AccountRoot",
|
|
||||||
"LedgerIndex": "6FA3F5B750FF159267BA377112BA021DD4941543FEDFB73CDE2EEC1E4E5B17FE",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": "1045829776700",
|
|
||||||
"Sequence": 3512003
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "71CB0DAC1149EB3301A45F96D3CB124B2EF911CFBD5F62A209DC9350EE251560",
|
|
||||||
"PreviousTxnLgrSeq": 15658982
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"CreatedNode": {
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"LedgerIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"NewFields": {
|
|
||||||
"ExchangeRate": "5B03D0FB90BC3D05",
|
|
||||||
"RootIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004A50590000000000",
|
|
||||||
"TakerGetsIssuer": "5BBC0F22F61D9224A110650CFE21CC0C4BE13098"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DeletedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"ExchangeRate": "5B03D0FBB5C48403",
|
|
||||||
"Flags": 0,
|
|
||||||
"RootIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FBB5C48403",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004A50590000000000",
|
|
||||||
"TakerGetsIssuer": "5BBC0F22F61D9224A110650CFE21CC0C4BE13098",
|
|
||||||
"TakerPaysCurrency": "0000000000000000000000000000000000000000",
|
|
||||||
"TakerPaysIssuer": "0000000000000000000000000000000000000000"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"LedgerIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FBB5C48403"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TransactionIndex": 16,
|
|
||||||
"TransactionResult": "tesSUCCESS"
|
|
||||||
},
|
|
||||||
"status": "closed",
|
|
||||||
"transaction": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"Fee": "10000",
|
|
||||||
"Flags": 2147483648,
|
|
||||||
"LastLedgerSequence": 15658983,
|
|
||||||
"Memos": [
|
|
||||||
{
|
|
||||||
"Memo": {
|
|
||||||
"MemoType": "3031"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"OfferSequence": 3511992,
|
|
||||||
"Sequence": 3512003,
|
|
||||||
"SigningPubKey": "023104AE68E6E6FA6987345A37B8A651E867356947E101E7BFB278541836277D48",
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66436.33517689175"
|
|
||||||
},
|
|
||||||
"TakerPays": "71366164619",
|
|
||||||
"TransactionType": "OfferCreate",
|
|
||||||
"TxnSignature": "304402204B6A793273487D1811D9479B8408A3A0752EAAF0A6F2BC385F275AD2167BCE0402201F6BBD07407499D839F9834662087F508AC06B67C5E049D72A3FF3A55E89829C",
|
|
||||||
"date": 494604970,
|
|
||||||
"hash": "F8F042903D4A2AE18F407D2B277EB75FC1C7ED115401ACA54D9A26D96D7F9A98",
|
|
||||||
"owner_funds": "770539.7390873457"
|
|
||||||
},
|
|
||||||
"type": "transaction",
|
|
||||||
"validated": true,
|
|
||||||
"mmeta": {
|
|
||||||
"nodes": [
|
|
||||||
{
|
|
||||||
"nodeType": "CreatedNode",
|
|
||||||
"diffType": "CreatedNode",
|
|
||||||
"entryType": "Offer",
|
|
||||||
"ledgerIndex": "1E5B1F64A949775AC3236139AD28452AF0D32F28D43DBEB0BFEF85D942E69E5A",
|
|
||||||
"fields": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"BookDirectory": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"OwnerNode": "000000000000000F",
|
|
||||||
"Sequence": 3512003,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66436.33517689175"
|
|
||||||
},
|
|
||||||
"TakerPays": "71366164619"
|
|
||||||
},
|
|
||||||
"fieldsPrev": {},
|
|
||||||
"fieldsNew": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"BookDirectory": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"OwnerNode": "000000000000000F",
|
|
||||||
"Sequence": 3512003,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66436.33517689175"
|
|
||||||
},
|
|
||||||
"TakerPays": "71366164619"
|
|
||||||
},
|
|
||||||
"fieldsFinal": {},
|
|
||||||
"bookKey": "JPY/r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN:XRP"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nodeType": "DeletedNode",
|
|
||||||
"diffType": "DeletedNode",
|
|
||||||
"entryType": "Offer",
|
|
||||||
"ledgerIndex": "64DDB33BF3AF700BF8DBD66DDBD7F43495C20B41E55420F5F865538A956999B2",
|
|
||||||
"fields": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"BookDirectory": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FBB5C48403",
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerNode": "000000000000000F",
|
|
||||||
"PreviousTxnID": "8FB8D385FF07349C022524BBD2AC693B38751880CE123505E558ED18FA1043C1",
|
|
||||||
"PreviousTxnLgrSeq": 15658981,
|
|
||||||
"Sequence": 3511992,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66435.49665972557"
|
|
||||||
},
|
|
||||||
"TakerPays": "71365305157"
|
|
||||||
},
|
|
||||||
"fieldsPrev": {},
|
|
||||||
"fieldsNew": {},
|
|
||||||
"fieldsFinal": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"BookDirectory": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FBB5C48403",
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerNode": "000000000000000F",
|
|
||||||
"PreviousTxnID": "8FB8D385FF07349C022524BBD2AC693B38751880CE123505E558ED18FA1043C1",
|
|
||||||
"PreviousTxnLgrSeq": 15658981,
|
|
||||||
"Sequence": 3511992,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66435.49665972557"
|
|
||||||
},
|
|
||||||
"TakerPays": "71365305157"
|
|
||||||
},
|
|
||||||
"bookKey": "JPY/r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN:XRP"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nodeType": "ModifiedNode",
|
|
||||||
"diffType": "ModifiedNode",
|
|
||||||
"entryType": "DirectoryNode",
|
|
||||||
"ledgerIndex": "669421A08DBE33B9F510ED2AA0C32A71445AA95613BB0DC87DB2A4E6DBF45ED1",
|
|
||||||
"fields": {
|
|
||||||
"Flags": 0,
|
|
||||||
"IndexPrevious": "0000000000000001",
|
|
||||||
"Owner": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"RootIndex": "77FF082487FAF8E65296292EBD5779AC4283909E2E171DFB1BE69F09B765D882"
|
|
||||||
},
|
|
||||||
"fieldsPrev": {},
|
|
||||||
"fieldsNew": {},
|
|
||||||
"fieldsFinal": {
|
|
||||||
"Flags": 0,
|
|
||||||
"IndexPrevious": "0000000000000001",
|
|
||||||
"Owner": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"RootIndex": "77FF082487FAF8E65296292EBD5779AC4283909E2E171DFB1BE69F09B765D882"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nodeType": "ModifiedNode",
|
|
||||||
"diffType": "ModifiedNode",
|
|
||||||
"entryType": "AccountRoot",
|
|
||||||
"ledgerIndex": "6FA3F5B750FF159267BA377112BA021DD4941543FEDFB73CDE2EEC1E4E5B17FE",
|
|
||||||
"fields": {
|
|
||||||
"Balance": "1045829766700",
|
|
||||||
"Sequence": 3512004,
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerCount": 33
|
|
||||||
},
|
|
||||||
"fieldsPrev": {
|
|
||||||
"Balance": "1045829776700",
|
|
||||||
"Sequence": 3512003
|
|
||||||
},
|
|
||||||
"fieldsNew": {},
|
|
||||||
"fieldsFinal": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"Balance": "1045829766700",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerCount": 33,
|
|
||||||
"Sequence": 3512004
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nodeType": "CreatedNode",
|
|
||||||
"diffType": "CreatedNode",
|
|
||||||
"entryType": "DirectoryNode",
|
|
||||||
"ledgerIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"fields": {
|
|
||||||
"ExchangeRate": "5B03D0FB90BC3D05",
|
|
||||||
"RootIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004A50590000000000",
|
|
||||||
"TakerGetsIssuer": "5BBC0F22F61D9224A110650CFE21CC0C4BE13098"
|
|
||||||
},
|
|
||||||
"fieldsPrev": {},
|
|
||||||
"fieldsNew": {
|
|
||||||
"ExchangeRate": "5B03D0FB90BC3D05",
|
|
||||||
"RootIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004A50590000000000",
|
|
||||||
"TakerGetsIssuer": "5BBC0F22F61D9224A110650CFE21CC0C4BE13098"
|
|
||||||
},
|
|
||||||
"fieldsFinal": {}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nodeType": "DeletedNode",
|
|
||||||
"diffType": "DeletedNode",
|
|
||||||
"entryType": "DirectoryNode",
|
|
||||||
"ledgerIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FBB5C48403",
|
|
||||||
"fields": {
|
|
||||||
"ExchangeRate": "5B03D0FBB5C48403",
|
|
||||||
"Flags": 0,
|
|
||||||
"RootIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FBB5C48403",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004A50590000000000",
|
|
||||||
"TakerGetsIssuer": "5BBC0F22F61D9224A110650CFE21CC0C4BE13098",
|
|
||||||
"TakerPaysCurrency": "0000000000000000000000000000000000000000",
|
|
||||||
"TakerPaysIssuer": "0000000000000000000000000000000000000000"
|
|
||||||
},
|
|
||||||
"fieldsPrev": {},
|
|
||||||
"fieldsNew": {},
|
|
||||||
"fieldsFinal": {
|
|
||||||
"ExchangeRate": "5B03D0FBB5C48403",
|
|
||||||
"Flags": 0,
|
|
||||||
"RootIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FBB5C48403",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004A50590000000000",
|
|
||||||
"TakerGetsIssuer": "5BBC0F22F61D9224A110650CFE21CC0C4BE13098",
|
|
||||||
"TakerPaysCurrency": "0000000000000000000000000000000000000000",
|
|
||||||
"TakerPaysIssuer": "0000000000000000000000000000000000000000"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_affectedAccounts": [
|
|
||||||
"rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN"
|
|
||||||
],
|
|
||||||
"_affectedBooks": [
|
|
||||||
"JPY/r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN:XRP"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lastMessage": {
|
|
||||||
"engine_result": "tesSUCCESS",
|
|
||||||
"engine_result_code": 0,
|
|
||||||
"engine_result_message": "The transaction was applied. Only final in a validated ledger.",
|
|
||||||
"ledger_hash": "91A484E043A0AD506BF84D3FC733B3F1886831F65E23866B15B356392B714261",
|
|
||||||
"ledger_index": 15658984,
|
|
||||||
"meta": {
|
|
||||||
"AffectedNodes": [
|
|
||||||
{
|
|
||||||
"DeletedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"BookDirectory": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerNode": "000000000000000F",
|
|
||||||
"PreviousTxnID": "F8F042903D4A2AE18F407D2B277EB75FC1C7ED115401ACA54D9A26D96D7F9A98",
|
|
||||||
"PreviousTxnLgrSeq": 15658982,
|
|
||||||
"Sequence": 3512003,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66436.33517689175"
|
|
||||||
},
|
|
||||||
"TakerPays": "71366164619"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "Offer",
|
|
||||||
"LedgerIndex": "1E5B1F64A949775AC3236139AD28452AF0D32F28D43DBEB0BFEF85D942E69E5A"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Flags": 0,
|
|
||||||
"IndexPrevious": "0000000000000001",
|
|
||||||
"Owner": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"RootIndex": "77FF082487FAF8E65296292EBD5779AC4283909E2E171DFB1BE69F09B765D882"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"LedgerIndex": "669421A08DBE33B9F510ED2AA0C32A71445AA95613BB0DC87DB2A4E6DBF45ED1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"Balance": "1045829696700",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerCount": 33,
|
|
||||||
"Sequence": 3512011
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "AccountRoot",
|
|
||||||
"LedgerIndex": "6FA3F5B750FF159267BA377112BA021DD4941543FEDFB73CDE2EEC1E4E5B17FE",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": "1045829706700",
|
|
||||||
"Sequence": 3512010
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "D8518B78A0C6643A79283247BF09DB85F428D80FCF0268242A899482E23F11CE",
|
|
||||||
"PreviousTxnLgrSeq": 15658984
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"CreatedNode": {
|
|
||||||
"LedgerEntryType": "Offer",
|
|
||||||
"LedgerIndex": "709FAE8F56B15C9C3326D8D5D0DF461C17BD5E97C909D46CE366DEE2BC227F0F",
|
|
||||||
"NewFields": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"BookDirectory": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D025BE99FECC",
|
|
||||||
"OwnerNode": "000000000000000F",
|
|
||||||
"Sequence": 3512010,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66493.18081187701"
|
|
||||||
},
|
|
||||||
"TakerPays": "71366164172"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"CreatedNode": {
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"LedgerIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D025BE99FECC",
|
|
||||||
"NewFields": {
|
|
||||||
"ExchangeRate": "5B03D025BE99FECC",
|
|
||||||
"RootIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D025BE99FECC",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004A50590000000000",
|
|
||||||
"TakerGetsIssuer": "5BBC0F22F61D9224A110650CFE21CC0C4BE13098"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DeletedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"ExchangeRate": "5B03D0FB90BC3D05",
|
|
||||||
"Flags": 0,
|
|
||||||
"RootIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004A50590000000000",
|
|
||||||
"TakerGetsIssuer": "5BBC0F22F61D9224A110650CFE21CC0C4BE13098",
|
|
||||||
"TakerPaysCurrency": "0000000000000000000000000000000000000000",
|
|
||||||
"TakerPaysIssuer": "0000000000000000000000000000000000000000"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "DirectoryNode",
|
|
||||||
"LedgerIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TransactionIndex": 9,
|
|
||||||
"TransactionResult": "tesSUCCESS"
|
|
||||||
},
|
|
||||||
"status": "closed",
|
|
||||||
"transaction": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"Fee": "10000",
|
|
||||||
"Flags": 2147483648,
|
|
||||||
"LastLedgerSequence": 15658985,
|
|
||||||
"Memos": [
|
|
||||||
{
|
|
||||||
"Memo": {
|
|
||||||
"MemoType": "3031"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"OfferSequence": 3512003,
|
|
||||||
"Sequence": 3512010,
|
|
||||||
"SigningPubKey": "023104AE68E6E6FA6987345A37B8A651E867356947E101E7BFB278541836277D48",
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66493.18081187701"
|
|
||||||
},
|
|
||||||
"TakerPays": "71366164172",
|
|
||||||
"TransactionType": "OfferCreate",
|
|
||||||
"TxnSignature": "304402201DE5CFA82F4CCBF1A987EDCB63EC95EFCC4FC7F167B942FC78CA68C459252D6B02205690058F976A49EF7034FD6958CA02889288782C81A8FEE83A791BA1A974336E",
|
|
||||||
"date": 494604980,
|
|
||||||
"hash": "68C33D8465B2F7942D118679CC73976988725CC057F6D0E22413B4E5A0A64087",
|
|
||||||
"owner_funds": "770539.7390873457"
|
|
||||||
},
|
|
||||||
"type": "transaction",
|
|
||||||
"validated": true,
|
|
||||||
"mmeta": {
|
|
||||||
"nodes": [
|
|
||||||
{
|
|
||||||
"nodeType": "DeletedNode",
|
|
||||||
"diffType": "DeletedNode",
|
|
||||||
"entryType": "Offer",
|
|
||||||
"ledgerIndex": "1E5B1F64A949775AC3236139AD28452AF0D32F28D43DBEB0BFEF85D942E69E5A",
|
|
||||||
"fields": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"BookDirectory": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerNode": "000000000000000F",
|
|
||||||
"PreviousTxnID": "F8F042903D4A2AE18F407D2B277EB75FC1C7ED115401ACA54D9A26D96D7F9A98",
|
|
||||||
"PreviousTxnLgrSeq": 15658982,
|
|
||||||
"Sequence": 3512003,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66436.33517689175"
|
|
||||||
},
|
|
||||||
"TakerPays": "71366164619"
|
|
||||||
},
|
|
||||||
"fieldsPrev": {},
|
|
||||||
"fieldsNew": {},
|
|
||||||
"fieldsFinal": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"BookDirectory": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"BookNode": "0000000000000000",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerNode": "000000000000000F",
|
|
||||||
"PreviousTxnID": "F8F042903D4A2AE18F407D2B277EB75FC1C7ED115401ACA54D9A26D96D7F9A98",
|
|
||||||
"PreviousTxnLgrSeq": 15658982,
|
|
||||||
"Sequence": 3512003,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66436.33517689175"
|
|
||||||
},
|
|
||||||
"TakerPays": "71366164619"
|
|
||||||
},
|
|
||||||
"bookKey": "JPY/r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN:XRP"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nodeType": "ModifiedNode",
|
|
||||||
"diffType": "ModifiedNode",
|
|
||||||
"entryType": "DirectoryNode",
|
|
||||||
"ledgerIndex": "669421A08DBE33B9F510ED2AA0C32A71445AA95613BB0DC87DB2A4E6DBF45ED1",
|
|
||||||
"fields": {
|
|
||||||
"Flags": 0,
|
|
||||||
"IndexPrevious": "0000000000000001",
|
|
||||||
"Owner": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"RootIndex": "77FF082487FAF8E65296292EBD5779AC4283909E2E171DFB1BE69F09B765D882"
|
|
||||||
},
|
|
||||||
"fieldsPrev": {},
|
|
||||||
"fieldsNew": {},
|
|
||||||
"fieldsFinal": {
|
|
||||||
"Flags": 0,
|
|
||||||
"IndexPrevious": "0000000000000001",
|
|
||||||
"Owner": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"RootIndex": "77FF082487FAF8E65296292EBD5779AC4283909E2E171DFB1BE69F09B765D882"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nodeType": "ModifiedNode",
|
|
||||||
"diffType": "ModifiedNode",
|
|
||||||
"entryType": "AccountRoot",
|
|
||||||
"ledgerIndex": "6FA3F5B750FF159267BA377112BA021DD4941543FEDFB73CDE2EEC1E4E5B17FE",
|
|
||||||
"fields": {
|
|
||||||
"Balance": "1045829696700",
|
|
||||||
"Sequence": 3512011,
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerCount": 33
|
|
||||||
},
|
|
||||||
"fieldsPrev": {
|
|
||||||
"Balance": "1045829706700",
|
|
||||||
"Sequence": 3512010
|
|
||||||
},
|
|
||||||
"fieldsNew": {},
|
|
||||||
"fieldsFinal": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"Balance": "1045829696700",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerCount": 33,
|
|
||||||
"Sequence": 3512011
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nodeType": "CreatedNode",
|
|
||||||
"diffType": "CreatedNode",
|
|
||||||
"entryType": "Offer",
|
|
||||||
"ledgerIndex": "709FAE8F56B15C9C3326D8D5D0DF461C17BD5E97C909D46CE366DEE2BC227F0F",
|
|
||||||
"fields": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"BookDirectory": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D025BE99FECC",
|
|
||||||
"OwnerNode": "000000000000000F",
|
|
||||||
"Sequence": 3512010,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66493.18081187701"
|
|
||||||
},
|
|
||||||
"TakerPays": "71366164172"
|
|
||||||
},
|
|
||||||
"fieldsPrev": {},
|
|
||||||
"fieldsNew": {
|
|
||||||
"Account": "rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"BookDirectory": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D025BE99FECC",
|
|
||||||
"OwnerNode": "000000000000000F",
|
|
||||||
"Sequence": 3512010,
|
|
||||||
"TakerGets": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN",
|
|
||||||
"value": "66493.18081187701"
|
|
||||||
},
|
|
||||||
"TakerPays": "71366164172"
|
|
||||||
},
|
|
||||||
"fieldsFinal": {},
|
|
||||||
"bookKey": "JPY/r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN:XRP"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nodeType": "CreatedNode",
|
|
||||||
"diffType": "CreatedNode",
|
|
||||||
"entryType": "DirectoryNode",
|
|
||||||
"ledgerIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D025BE99FECC",
|
|
||||||
"fields": {
|
|
||||||
"ExchangeRate": "5B03D025BE99FECC",
|
|
||||||
"RootIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D025BE99FECC",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004A50590000000000",
|
|
||||||
"TakerGetsIssuer": "5BBC0F22F61D9224A110650CFE21CC0C4BE13098"
|
|
||||||
},
|
|
||||||
"fieldsPrev": {},
|
|
||||||
"fieldsNew": {
|
|
||||||
"ExchangeRate": "5B03D025BE99FECC",
|
|
||||||
"RootIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D025BE99FECC",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004A50590000000000",
|
|
||||||
"TakerGetsIssuer": "5BBC0F22F61D9224A110650CFE21CC0C4BE13098"
|
|
||||||
},
|
|
||||||
"fieldsFinal": {}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nodeType": "DeletedNode",
|
|
||||||
"diffType": "DeletedNode",
|
|
||||||
"entryType": "DirectoryNode",
|
|
||||||
"ledgerIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"fields": {
|
|
||||||
"ExchangeRate": "5B03D0FB90BC3D05",
|
|
||||||
"Flags": 0,
|
|
||||||
"RootIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004A50590000000000",
|
|
||||||
"TakerGetsIssuer": "5BBC0F22F61D9224A110650CFE21CC0C4BE13098",
|
|
||||||
"TakerPaysCurrency": "0000000000000000000000000000000000000000",
|
|
||||||
"TakerPaysIssuer": "0000000000000000000000000000000000000000"
|
|
||||||
},
|
|
||||||
"fieldsPrev": {},
|
|
||||||
"fieldsNew": {},
|
|
||||||
"fieldsFinal": {
|
|
||||||
"ExchangeRate": "5B03D0FB90BC3D05",
|
|
||||||
"Flags": 0,
|
|
||||||
"RootIndex": "9F72CA02AB7CBA0FD97EA5F245C03EDC555C3FE97749CD425B03D0FB90BC3D05",
|
|
||||||
"TakerGetsCurrency": "0000000000000000000000004A50590000000000",
|
|
||||||
"TakerGetsIssuer": "5BBC0F22F61D9224A110650CFE21CC0C4BE13098",
|
|
||||||
"TakerPaysCurrency": "0000000000000000000000000000000000000000",
|
|
||||||
"TakerPaysIssuer": "0000000000000000000000000000000000000000"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_affectedAccounts": [
|
|
||||||
"rBztfz5wmDXXgB3KQd5LgtbHZz28KGpYP5",
|
|
||||||
"r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN"
|
|
||||||
],
|
|
||||||
"_affectedBooks": [
|
|
||||||
"JPY/r94s8px6kSw1uZ1MV98dhSRTvc6VMPoPcN:XRP"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
1023
test/fixtures/orderbook.js
vendored
1023
test/fixtures/orderbook.js
vendored
File diff suppressed because it is too large
Load Diff
788
test/fixtures/pathfind.json
vendored
788
test/fixtures/pathfind.json
vendored
@@ -1,788 +0,0 @@
|
|||||||
{
|
|
||||||
"id": 2,
|
|
||||||
"type": "path_find",
|
|
||||||
"alternatives": [
|
|
||||||
{
|
|
||||||
"paths_computed": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rwBWBFZrbLzHoe3PhwWYv89iHJdxAFrxcB",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rULnR9YhAkj9HrcxAcudzBhaXRSqT7zJkq",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "r9hEDb4xBGRfBCcX3E4FirDWQBAYtpxC8K",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"source_amount": "64235"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"paths_computed": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rpgKWEmNqSDAGFhy5WDnsyPqfQxbWxKeVd",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"source_amount": {
|
|
||||||
"currency": "BTC",
|
|
||||||
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
|
||||||
"value": "0.000003810807915357615"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"paths_computed": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rpHgehzdpfWRXKvSv6duKvVuo1aZVimdaT",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rpHgehzdpfWRXKvSv6duKvVuo1aZVimdaT",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rHHa9t2kLQyXRbdLkSzEgkzwf9unmFgZs9",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rHHa9t2kLQyXRbdLkSzEgkzwf9unmFgZs9",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"source_amount": {
|
|
||||||
"currency": "CHF",
|
|
||||||
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
|
||||||
"value": "0.004290898000000001"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"paths_computed": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "razqQKzJRdB4UxFPWf5NEpEG3WMkmwgcXA",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "razqQKzJRdB4UxFPWf5NEpEG3WMkmwgcXA",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "razqQKzJRdB4UxFPWf5NEpEG3WMkmwgcXA",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "razqQKzJRdB4UxFPWf5NEpEG3WMkmwgcXA",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rpHgehzdpfWRXKvSv6duKvVuo1aZVimdaT",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rpHgehzdpfWRXKvSv6duKvVuo1aZVimdaT",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"source_amount": {
|
|
||||||
"currency": "CNY",
|
|
||||||
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
|
||||||
"value": "0.006251153484651535"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"paths_computed": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rGwUWgN5BEg3QGNY3RX2HfYowjUTZdid3E",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rGwUWgN5BEg3QGNY3RX2HfYowjUTZdid3E",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rGwUWgN5BEg3QGNY3RX2HfYowjUTZdid3E",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rGwUWgN5BEg3QGNY3RX2HfYowjUTZdid3E",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rpHgehzdpfWRXKvSv6duKvVuo1aZVimdaT",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rpHgehzdpfWRXKvSv6duKvVuo1aZVimdaT",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"source_amount": {
|
|
||||||
"currency": "DYM",
|
|
||||||
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
|
||||||
"value": "0.001503"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"paths_computed": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rLEsXccBGNR3UPuPu2hUXPjziKC3qKSBun",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rLEsXccBGNR3UPuPu2hUXPjziKC3qKSBun",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rLEsXccBGNR3UPuPu2hUXPjziKC3qKSBun",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"source_amount": {
|
|
||||||
"currency": "EUR",
|
|
||||||
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
|
||||||
"value": "0.0008032032"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"paths_computed": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rpHgehzdpfWRXKvSv6duKvVuo1aZVimdaT",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rpHgehzdpfWRXKvSv6duKvVuo1aZVimdaT",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rHHa9t2kLQyXRbdLkSzEgkzwf9unmFgZs9",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rHHa9t2kLQyXRbdLkSzEgkzwf9unmFgZs9",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"source_amount": {
|
|
||||||
"currency": "JPY",
|
|
||||||
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
|
||||||
"value": "0.12872694"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"paths_computed": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rHpXfibHgSb64n8kK9QWDpdbfqSpYbM9a4",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rHpXfibHgSb64n8kK9QWDpdbfqSpYbM9a4",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rHpXfibHgSb64n8kK9QWDpdbfqSpYbM9a4",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rpHgehzdpfWRXKvSv6duKvVuo1aZVimdaT",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rpHgehzdpfWRXKvSv6duKvVuo1aZVimdaT",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"account": "rHpXfibHgSb64n8kK9QWDpdbfqSpYbM9a4",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "XRP",
|
|
||||||
"type": 16,
|
|
||||||
"type_hex": "0000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rHHa9t2kLQyXRbdLkSzEgkzwf9unmFgZs9",
|
|
||||||
"type": 48,
|
|
||||||
"type_hex": "0000000000000030"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rHHa9t2kLQyXRbdLkSzEgkzwf9unmFgZs9",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"type": 1,
|
|
||||||
"type_hex": "0000000000000001"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"source_amount": {
|
|
||||||
"currency": "MXN",
|
|
||||||
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
|
||||||
"value": "0.008172391857506362"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"destination_account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
|
||||||
"destination_amount": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
|
|
||||||
"value": "0.001"
|
|
||||||
},
|
|
||||||
"source_account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59"
|
|
||||||
}
|
|
||||||
123
test/fixtures/payment-iou.json
vendored
123
test/fixtures/payment-iou.json
vendored
@@ -1,123 +0,0 @@
|
|||||||
{
|
|
||||||
"engine_result": "tesSUCCESS",
|
|
||||||
"engine_result_code": 0,
|
|
||||||
"engine_result_message": "The transaction was applied.",
|
|
||||||
"ledger_hash": "F3F1416BF2E813396AB01FAA38E9F1023AC4D2368D94B0D52B2BC603CEEC01C3",
|
|
||||||
"ledger_index": 10459371,
|
|
||||||
"status": "closed",
|
|
||||||
"type": "transaction",
|
|
||||||
"validated": true,
|
|
||||||
"metadata": {
|
|
||||||
"AffectedNodes": [
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "1.525330905250352"
|
|
||||||
},
|
|
||||||
"Flags": 1114112,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"HighNode": "00000000000001E8",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rKmBGxocj9Abgy25J51Mk1iqFzW9aVF9Tc",
|
|
||||||
"value": "1000000000"
|
|
||||||
},
|
|
||||||
"LowNode": "0000000000000000"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "2F323020B4288ACD4066CC64C89DAD2E4D5DFC2D44571942A51C005BF79D6E25",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "1.535330905250352"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "DC061E6F47B1B6E9A496A31B1AF87194B4CB24B2EBF8A59F35E31E12509238BD",
|
|
||||||
"PreviousTxnLgrSeq": 10459364
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "0.02"
|
|
||||||
},
|
|
||||||
"Flags": 1114112,
|
|
||||||
"HighLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"HighNode": "00000000000001E8",
|
|
||||||
"LowLimit": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rLDYrujdKUfVx28T9vRDAbyJ7G2WVXKo4K",
|
|
||||||
"value": "1000000000"
|
|
||||||
},
|
|
||||||
"LowNode": "0000000000000000"
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "RippleState",
|
|
||||||
"LedgerIndex": "AAE13AF5192EFBFD49A8EEE5869595563FEB73228C0B38FED9CC3D20EE74F399",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
|
||||||
"value": "0.01"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "DC061E6F47B1B6E9A496A31B1AF87194B4CB24B2EBF8A59F35E31E12509238BD",
|
|
||||||
"PreviousTxnLgrSeq": 10459364
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ModifiedNode": {
|
|
||||||
"FinalFields": {
|
|
||||||
"Account": "rKmBGxocj9Abgy25J51Mk1iqFzW9aVF9Tc",
|
|
||||||
"Balance": "239555992",
|
|
||||||
"Flags": 0,
|
|
||||||
"OwnerCount": 1,
|
|
||||||
"Sequence": 38
|
|
||||||
},
|
|
||||||
"LedgerEntryType": "AccountRoot",
|
|
||||||
"LedgerIndex": "E9A39B0BA8703D5FFD05D9EAD01EE6C0E7A15CF33C2C6B7269107BD2BD535818",
|
|
||||||
"PreviousFields": {
|
|
||||||
"Balance": "239567992",
|
|
||||||
"Sequence": 37
|
|
||||||
},
|
|
||||||
"PreviousTxnID": "DC061E6F47B1B6E9A496A31B1AF87194B4CB24B2EBF8A59F35E31E12509238BD",
|
|
||||||
"PreviousTxnLgrSeq": 10459364
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TransactionIndex": 2,
|
|
||||||
"TransactionResult": "tesSUCCESS"
|
|
||||||
},
|
|
||||||
"tx_json": {
|
|
||||||
"Account": "rKmBGxocj9Abgy25J51Mk1iqFzW9aVF9Tc",
|
|
||||||
"Amount": {
|
|
||||||
"currency": "USD",
|
|
||||||
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
|
|
||||||
"value": "0.01"
|
|
||||||
},
|
|
||||||
"Destination": "rLDYrujdKUfVx28T9vRDAbyJ7G2WVXKo4K",
|
|
||||||
"Fee": "12000",
|
|
||||||
"Flags": 2147483648,
|
|
||||||
"LastLedgerSequence": 10459379,
|
|
||||||
"Sequence": 37,
|
|
||||||
"SigningPubKey": "03F16A52EBDCA6EBF5D99828E1E6918C64D45E6F136476A8F4757512FE553D18F0",
|
|
||||||
"TransactionType": "Payment",
|
|
||||||
"TxnSignature": "3044022031D6AB55CDFD17E06DA0BAD6D6B7DC9B5CA8FFF50405F2FCD3ED8D3893B1835E02200524CC1E7D70AE3F00C9F94405C55EE179C363F534905168AE8B5BA01CF568A0",
|
|
||||||
"date": 471644150,
|
|
||||||
"hash": "34671C179737CC89E0F8BBAA83C313885ED1733488FC0F3088BAE16A3D9A5B1B"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
36
test/fixtures/payments.js
vendored
36
test/fixtures/payments.js
vendored
@@ -1,36 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const _ = require('lodash');
|
|
||||||
|
|
||||||
|
|
||||||
module.exports.payment = function(_options = {}) {
|
|
||||||
const options = _options;
|
|
||||||
_.defaults(options, {
|
|
||||||
value: '0.000001',
|
|
||||||
currency: 'XRP',
|
|
||||||
issuer: ''
|
|
||||||
});
|
|
||||||
|
|
||||||
const paymentObject = {
|
|
||||||
source: {
|
|
||||||
address: options.sourceAccount,
|
|
||||||
amount: {
|
|
||||||
value: options.value,
|
|
||||||
currency: options.currency
|
|
||||||
}
|
|
||||||
},
|
|
||||||
destination: {
|
|
||||||
address: options.destinationAccount,
|
|
||||||
amount: {
|
|
||||||
value: options.value,
|
|
||||||
currency: options.currency
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
if (options.issuer) {
|
|
||||||
paymentObject.source.amount.counterparty = options.issuer;
|
|
||||||
paymentObject.destination.amount.counterparty = options.issuer;
|
|
||||||
}
|
|
||||||
return paymentObject;
|
|
||||||
};
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user