Remit
The Remit transaction allows the user to send multiple payment types, mint a URIToken, transfer a list of URITokens and activate an account.
The Remit transaction pays all fees for Account Activation, Trustlines and URIToken Reserves.
[Source]
(Added by the [Remit amendment][].)
Example
Field | JSON Type | [Internal Type][] | Description |
---|---|---|---|
| String | AccountID | The address of the account that will activate the account, send the payment and/or mint/transfer the URIToken/s. |
| String | AccountID | The unique address of the account receiving the payment and/or URIToken/s. |
| Number | UInt32 | (Optional) A DestinationTag for deposits to a shared custody account. |
| Object | STObject | (Optional) A |
| Array | STArray | (Optional) An array of URITokenIDs (256-bit hash) to to be transferred to the |
| Array | STArray | (Optional) An array of |
| String | AccountID | (Optional) A unique address of an account that can have a hook installed and be informed when a remit occurs. |
| String | Blob | (Optional) Arbitrary hex value that can be added to the tx for use in Hooks. |
| String | Hash256 | (Optional) Arbitrary 256-bit hash representing a specific reason or identifier for this remit. |
AmountEntry Fields
Field | JSON Type | [Internal Type][] | Description |
---|---|---|---|
| Amount | The amount of currency the account wants to send to the |
MintURIToken Fields
Field | JSON Type | [Internal Type][] | Description |
---|---|---|---|
| String | String | The URI associated with the minted URIToken. (256 byte max) |
| String | Hash256 | (Optional) The digest of the URIToken. |
| Number | UInt32 | (Optional) Flags on the mint transaction |
MintURIToken Flags
The MintURIToken
STObject supports the values in the Flags
field, as follows:
Flag Name | Hex Value | Decimal Value | Description |
---|---|---|---|
|
| 1 | Allow the issuer to destroy the minted |
Special Transaction Cost
The Remit transaction has a standard transaction cost, which is the minimum fee required for any transaction in Xahau.
In addition to the minimum fee required the Remit transaction will also deduct the fees for the following:
Action | Fee |
---|---|
| Standard Reserve Requirement |
| Standard Reserve Requirement |
| Standard Reserve Requirement |
| Standard Reserve Requirement |
Error Cases
Besides errors that can occur for all transactions, Remit transactions can result in the following transaction result codes:
Error Code | Description |
---|---|
| Occurs if any flag is specific |
| Occurs if the Account is the same as the Destination |
| Occurs when; sfInform is same as " "source or destination. Blob was more than 128kib. |
| Occurs when; AmountEntry count exceeds |
| Occurs when; sfMintURIToken contains invalid field. URI was not provided. URI was too long/short. Invalid UTF8 inside MintURIToken. |
| Occurs when; URITokenIDs too short/long. Duplicate URITokenID. |
| Occurs when an Amount in the AmountEntry is invalid. |
| Occurs when the source account does not exist. |
| Occurs when the |
| Occurs when |
| Occurs when the |
| Occurs if the destination account requires a destination tag, but the transaction does not include one. |
| Occurs when the |
| Occurs when the source or destination accouts directory is full. |
| Occurs when the URIToken does not exist. |
| Occurs when the URIToken is not owned by the source account. |
| Occurs when the source account does not have the required funds to execute the transaction. (XAH or Issued Currencies) |
Last updated