mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-18 18:55:49 +00:00
3.3 KiB
3.3 KiB
Transaction Format
All Transactions
| Field | Type | Description |
|---|---|---|
| Account | String | The unique address of the account that initiated the transaction |
| Fee | String | Amount of XRP in drops to be destroyed from the sendering account's balance as a fee for redistributing this transaction to the network. (See Transaction Fees |
| Flags | Unsigned Integer | (Optional) Set of bit-flags for this transaction |
| LastLedgerSequence | Number | (Optional) Highest valid ledger number that a transaction can appear in. If this is specified, and the transaction is not included by the time the ledger reaches the specified ledger sequence number, then the transaction is considered to have failed and will no longer be valid. |
| Memos | Array | (Optional) Additional arbitrary information used to identify this transaction. (The exact format and limitations of this field are subject to change.) |
| PreviousTxnID | String | (Optional) Identifying hash value of the immediately-previous transaction. If provided, that transaction is canceled and this one replaces it. (More clarification needed) |
| Sequence | Unsigned Integer | The sequence number, relative to the initiating account, of this transaction. |
| SigningPubKey | String | (Omitted until signed) Hex representation of the public key that corresponds to the private key used to sign this transaction. |
| SourceTag | Uint32? | (Optional) Allows the creator of transaction to identify the transaction. For payments, specify the DestinationTag for returning funds. (Need more clarification) |
| TransactionType | String | The type of transaction. Valid types include: Payment, OfferCreate, OfferCancel, TrustSet, and AccountSet. |
| TxnSignature | String | (Omitted until signed) The signature that verifies this transaction as originating from the account it says it is from |
Payments
| Field | Type | Description |
|---|---|---|
| Amount | String (XRP) Object (Otherwise) |
(Payment only) The amount of currency sent as part of this transaction. |
| Destination | String | (Payment only) The unique address of the account receiving the payment. |
| DestinationTag | Number(UInt32?) | (Optional) Arbitrary tag that identifies the reason for the payment to the destination. |
| InvoiceID | String | (Optional) Identifying hash value of another transaction that was an invoice/bill. If provided, mark this transaction as paying that invoice/bill. (More clarification needed) |
| Paths | Array | (Payment only) Array of arrays, specifying payment paths for this transaction. |
| SendMax | String/Object | (Payment only) Highest amount of currency this transaction is allowed to cost; this is to compensate for slippage. (See Specifying Currency Amounts) |
AccountSet
| Field | Type | Description |
|---|---|---|
| EmailHash | ||
| WalletLocator | ||
| WalletSize | ||
| MessageKey | ||
| Domain | ||
| TransferRate | ||
| SetFlag | ||
| ClearFlag | ||
| Signers |