Skip to content

DepositPreauth

[Source]

Added by the [DepositPreauth amendment][].

{
"TransactionType" : "DepositPreauth",
"Account" : "rsUiUMpnrgxQp24dJYZDhmV4bE3aBtQyt8",
"Authorize" : "rEhxGqkqPPSxQ3P25J66ft5TwpzV14k2de",
"Fee" : "10",
"Flags" : 2147483648,
"Sequence" : 2
}
FieldJSON Type[Internal Type][]Description
AuthorizeStringAccountID(Optional) Xahau address of the sender to preauthorize.
UnauthorizeStringAccountID(Optional) Xahau address of a sender whose preauthorization should be revoked.

You must provide either Authorize or Unauthorize, but not both.

  • An account cannot preauthorize (or unauthorize) its own address. Attempting to do so fails with the result temCANNOT_PREAUTH_SELF.
  • Attempting to preauthorize an account which is already preauthorized fails with the result tecDUPLICATE.
  • Attempting to unauthorize an account which is not preauthorized fails with the result tecNO_ENTRY.
  • Attempting to preauthorize an address that is not funded in the ledger fails with the result tecNO_TARGET.
  • Adding authorization adds a DepositPreauth object to the ledger, which counts toward the owner reserve requirement. If the sender of the transaction does not have enough XAH to pay for the increased reserve, the transaction fails with the result tecINSUFFICIENT_RESERVE. If the sender of the account is already at the maximum number of owned objects, the transaction fails with the result tecDIR_FULL.