Skip to content

Latest commit

 

History

History
93 lines (56 loc) · 2.09 KB

XrpTransaction.md

File metadata and controls

93 lines (56 loc) · 2.09 KB

Ripple (XRP) Transaction

Home

Implementation of abstract methods

In the following documentation we will refer to response object of the RPC endpoint as data

Hash / TxId / stdTxid

Each transaction response packs transaction hash as:

this.data.result.hash;

reference

For references we use Memos Fields. This method returns the array of all MemoData fields from al Memo fields present in transaction.

standardizedPaymentReference

If there is only one reference that is a representation of 32 byte hex string it is returned, otherwise 0 reference is returned

unixTimestamp

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)

sourceAddress

[this.data.result.Account];

receivingAddress

for transactions of type Payment we return

[this.data.result.Destination];

fee

fee used by transaction, always in XRP

this.data.result.Fee;

spentAmount

receivedAmount

type

One of the types from documentation [1]

isNativePayment

True: For all transactions where their type is Payment and the transfer is done in native currency (XRP)

currencyName

XRP for native transactions

elementaryUnits

10^(-6) to get from XRP -> elementary unit

successStatus

The following statuses should be considered

Resources

  1. https://xrpl.org/transaction-types.html