In the following documentation we will refer to response object of the RPC endpoint as data
Each transaction response packs transaction hash as:
this.data.result.hash;
For references we use Memos Fields. This method returns the array of all MemoData
fields from al Memo fields present in transaction.
If there is only one reference that is a representation of 32 byte hex string it is returned, otherwise 0 reference is returned
Transaction network time we get from
this.data.result.date;
Adjusted to UNIX timestamp in seconds from 1.1.1970 (instead of ripples 1.1.2000)
[this.data.result.Account];
for transactions of type Payment
we return
[this.data.result.Destination];
fee used by transaction, always in XRP
this.data.result.Fee;
One of the types from documentation [1]
True: For all transactions where their type is Payment
and the transfer is done in native currency (XRP)
XRP for native transactions
10^(-6) to get from XRP -> elementary unit
The following statuses should be considered
0
- Success1
- Failure due to sender fault- all other types of errors except the ones stated in the point below.
2
- Failure due to receiver fault