Show / Hide Table of Contents

Class Validation

Validation for CredentialAccept transactions.

Inheritance
object
Validation
Namespace: Xrpl.Models.Transactions
Assembly: Xrpl.dll
Syntax
public static class Validation

Fields

| Edit this page View Source

AMM_MAX_TRADING_FEE

Declaration
public const uint AMM_MAX_TRADING_FEE = 1000
Field Value
Type Description
uint
| Edit this page View Source

MPT_MAX_ASSET_SCALE

Maximum asset scale for MPT.

Declaration
public const byte MPT_MAX_ASSET_SCALE = 10
Field Value
Type Description
byte
| Edit this page View Source

MPT_MAX_METADATA_LENGTH

Maximum metadata length in bytes.

Declaration
public const int MPT_MAX_METADATA_LENGTH = 1024
Field Value
Type Description
int
| Edit this page View Source

MPT_MAX_TRANSFER_FEE

Maximum transfer fee for MPT (50.00% = 50000).

Declaration
public const ushort MPT_MAX_TRANSFER_FEE = 50000
Field Value
Type Description
ushort
| Edit this page View Source

ORACLE_PRICE_DATA_SERIES_MAX_LENGTH

Maximum number of PriceData objects in PriceDataSeries.

Declaration
public const int ORACLE_PRICE_DATA_SERIES_MAX_LENGTH = 10
Field Value
Type Description
int
| Edit this page View Source

ORACLE_SCALE_MAX

Maximum scale value for PriceData.

Declaration
public const int ORACLE_SCALE_MAX = 10
Field Value
Type Description
int

Methods

| Edit this page View Source

CheckPartialPayment(Dictionary<string, object>)

Declaration
public static Task CheckPartialPayment(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx
Returns
Type Description
Task
| Edit this page View Source

IsPathStep(Dictionary<string, object>)

Declaration
public static bool IsPathStep(Dictionary<string, object> pathStep)
Parameters
Type Name Description
Dictionary<string, object> pathStep
Returns
Type Description
bool
| Edit this page View Source

IsPaths(List<Dictionary<string, object>>)

Declaration
public static bool IsPaths(List<Dictionary<string, object>> paths)
Parameters
Type Name Description
List<Dictionary<string, object>> paths
Returns
Type Description
bool
| Edit this page View Source

IsPaths(List<List<Dictionary<string, object>>>)

Declaration
public static bool IsPaths(List<List<Dictionary<string, object>>> paths)
Parameters
Type Name Description
List<List<Dictionary<string, object>>> paths
Returns
Type Description
bool
| Edit this page View Source

Validate(Dictionary<string, object>)

Verify the form and type of a TrustSet at runtime.

Declaration
public static Task Validate(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A TrustSet Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the TrustSet is malformed.

| Edit this page View Source

ValidateAMMBid(Dictionary<string, object>)

Verify the form and type of an AMMBid at runtime.

Declaration
public static Task ValidateAMMBid(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An AMMBid Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the AMMBid is Malformed.

| Edit this page View Source

ValidateAMMClawBack(Dictionary<string, object>)

Verify the form and type of an AMMClawBack transaction at runtime.

Declaration
public static Task ValidateAMMClawBack(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An AMMClawBack Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the AMMClawBack is malformed.

| Edit this page View Source

ValidateAMMCreate(Dictionary<string, object>)

Verify the form and type of an AMMCreate at runtime.

Declaration
public static Task ValidateAMMCreate(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An AMMCreate Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the AMMCreate is Malformed.

| Edit this page View Source

ValidateAMMDelete(Dictionary<string, object>)

Verify the form and type of an AMMDelete at runtime.

Declaration
public static Task ValidateAMMDelete(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An AMMDelete Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the AMMDelete is Malformed.

| Edit this page View Source

ValidateAMMDeposit(Dictionary<string, object>)

Verify the form and type of an AMMDeposit at runtime.

Declaration
public static Task ValidateAMMDeposit(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An AMMDeposit Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the AMMDeposit is Malformed.

| Edit this page View Source

ValidateAMMVote(Dictionary<string, object>)

Verify the form and type of an AMMVote at runtime.

Declaration
public static Task ValidateAMMVote(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An AMMVote Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the AMMVote is Malformed.

| Edit this page View Source

ValidateAMMWithdraw(Dictionary<string, object>)

Verify the form and type of an AMMWithdraw at runtime.

Declaration
public static Task ValidateAMMWithdraw(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An AMMWithdraw Transaction.

Returns
Type Description
Task
| Edit this page View Source

ValidateAccountDelete(Dictionary<string, object>)

Verify the form and type of a AccountDelete at runtime.

Declaration
public static Task ValidateAccountDelete(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A AccountDelete Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the AccountDelete is malformed.

| Edit this page View Source

ValidateAccountSet(Dictionary<string, object>)

Verify the form and type of a AccountSet at runtime.

Declaration
public static Task ValidateAccountSet(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A AccountSet Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the AccountSet is malformed.

| Edit this page View Source

ValidateAuthAccounts(string, List<Dictionary<string, object>>)

Declaration
public static bool ValidateAuthAccounts(string senderAddress, List<Dictionary<string, object>> authAccounts)
Parameters
Type Name Description
string senderAddress
List<Dictionary<string, object>> authAccounts
Returns
Type Description
bool
| Edit this page View Source

ValidateBatch(Dictionary<string, object>)

Declaration
public static Task ValidateBatch(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx
Returns
Type Description
Task
| Edit this page View Source

ValidateCheckCancel(Dictionary<string, object>)

Verify the form and type of a CheckCancel at runtime.

Declaration
public static Task ValidateCheckCancel(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A CheckCancel Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the CheckCancel is malformed.

| Edit this page View Source

ValidateCheckCash(Dictionary<string, object>)

Verify the form and type of a CheckCash at runtime.

Declaration
public static Task ValidateCheckCash(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A CheckCash Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the CheckCash is malformed.

| Edit this page View Source

ValidateCheckCreate(Dictionary<string, object>)

Verify the form and type of a CheckCreate at runtime.

Declaration
public static Task ValidateCheckCreate(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A CheckCreate Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the CheckCreate is malformed.

| Edit this page View Source

ValidateClawBack(Dictionary<string, object>)

Verify the form and type of an ClawBack at runtime.

Declaration
public static Task ValidateClawBack(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An ClawBack Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the ClawBack is Malformed.

| Edit this page View Source

ValidateCredentialAccept(Dictionary<string, object>)

Validates a CredentialAccept transaction.

Declaration
public static Task ValidateCredentialAccept(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A CredentialAccept transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the CredentialAccept is malformed.

| Edit this page View Source

ValidateCredentialCreate(Dictionary<string, object>)

Validates a CredentialCreate transaction.

Declaration
public static Task ValidateCredentialCreate(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A CredentialCreate transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the CredentialCreate is malformed.

| Edit this page View Source

ValidateCredentialDelete(Dictionary<string, object>)

Validates a CredentialDelete transaction.

Declaration
public static Task ValidateCredentialDelete(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A CredentialDelete transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the CredentialDelete is malformed.

| Edit this page View Source

ValidateDIDDelete(Dictionary<string, object>)

Verify the form and type of a DIDDelete at runtime.

Declaration
public static Task ValidateDIDDelete(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A DIDDelete Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the DIDDelete is malformed.

| Edit this page View Source

ValidateDIDSet(Dictionary<string, object>)

Declaration
public static Task ValidateDIDSet(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx
Returns
Type Description
Task
| Edit this page View Source

ValidateDepositPreauth(Dictionary<string, object>)

Verify the form and type of a DepositPreauth at runtime.

Declaration
public static Task ValidateDepositPreauth(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A DepositPreauth Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the DepositPreauth is malformed.

| Edit this page View Source

ValidateEscrowCancel(Dictionary<string, object>)

Verify the form and type of a EscrowCancel at runtime.

Declaration
public static Task ValidateEscrowCancel(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A EscrowCancel Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the EscrowCancel is malformed.

| Edit this page View Source

ValidateEscrowCreate(Dictionary<string, object>)

Verify the form and type of a EscrowCreate at runtime.

Declaration
public static Task ValidateEscrowCreate(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A EscrowCreate Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the EscrowCreate is malformed.

| Edit this page View Source

ValidateEscrowFinish(Dictionary<string, object>)

Verify the form and type of a EscrowFinish at runtime.

Declaration
public static Task ValidateEscrowFinish(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A EscrowFinish Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the EscrowFinish is malformed.

| Edit this page View Source

ValidateMPTokenAuthorize(Dictionary<string, object>)

Verify the form and type of an MPTokenAuthorize at runtime.

Declaration
public static Task ValidateMPTokenAuthorize(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An MPTokenAuthorize Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the MPTokenAuthorize is Malformed.

| Edit this page View Source

ValidateMPTokenIssuanceCreate(Dictionary<string, object>)

Verify the form and type of an MPTokenIssuanceCreate at runtime.

Declaration
public static Task ValidateMPTokenIssuanceCreate(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An MPTokenIssuanceCreate Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the MPTokenIssuanceCreate is Malformed.

| Edit this page View Source

ValidateMPTokenIssuanceDestroy(Dictionary<string, object>)

Verify the form and type of an MPTokenIssuanceDestroy at runtime.

Declaration
public static Task ValidateMPTokenIssuanceDestroy(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An MPTokenIssuanceDestroy Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the MPTokenIssuanceDestroy is Malformed.

| Edit this page View Source

ValidateMPTokenIssuanceSet(Dictionary<string, object>)

Verify the form and type of an MPTokenIssuanceSet at runtime.

Declaration
public static Task ValidateMPTokenIssuanceSet(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An MPTokenIssuanceSet Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the MPTokenIssuanceSet is Malformed.

| Edit this page View Source

ValidateNFTokenAcceptOffer(Dictionary<string, object>)

Verify the form and type of an NFTokenAcceptOffer at runtime.

Declaration
public static Task ValidateNFTokenAcceptOffer(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An NFTokenAcceptOffer Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the NFTokenAcceptOffer is Malformed.

| Edit this page View Source

ValidateNFTokenBrokerFee(Dictionary<string, object>)

Declaration
public static Task ValidateNFTokenBrokerFee(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx
Returns
Type Description
Task
| Edit this page View Source

ValidateNFTokenBurn(Dictionary<string, object>)

Verify the form and type of an NFTokenBurn at runtime.

Declaration
public static Task ValidateNFTokenBurn(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An NFTokenBurn Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the NFTokenBurn is Malformed.

| Edit this page View Source

ValidateNFTokenBuyOfferCases(Dictionary<string, object>)

Declaration
public static Task ValidateNFTokenBuyOfferCases(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx
Returns
Type Description
Task
| Edit this page View Source

ValidateNFTokenCancelOffer(Dictionary<string, object>)

Verify the form and type of an NFTokenCancelOffer at runtime.

Declaration
public static Task ValidateNFTokenCancelOffer(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An NFTokenCancelOffer Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the NFTokenCancelOffer is Malformed.

| Edit this page View Source

ValidateNFTokenCreateOffer(Dictionary<string, object>)

Verify the form and type of an NFTokenCreateOffer at runtime.

Declaration
public static Task ValidateNFTokenCreateOffer(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An NFTokenCreateOffer Transaction.

Returns
Type Description
Task

When the NFTokenCreateOffer is Malformed.

Exceptions
Type Condition
ValidationException
| Edit this page View Source

ValidateNFTokenMint(Dictionary<string, object>)

Verify the form and type of an NFTokenMint at runtime.

Declaration
public static Task ValidateNFTokenMint(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An NFTokenMint Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the NFTokenMint is Malformed.

| Edit this page View Source

ValidateNFTokenModify(Dictionary<string, object>)

Verify the form and type of an NFTokenModify at runtime.

Declaration
public static Task ValidateNFTokenModify(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An NFTokenModify Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the NFTokenModify is Malformed.

| Edit this page View Source

ValidateNFTokenSellOfferCases(Dictionary<string, object>)

Declaration
public static Task ValidateNFTokenSellOfferCases(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx
Returns
Type Description
Task
| Edit this page View Source

ValidateOfferCancel(Dictionary<string, object>)

Verify the form and type of a OfferCancel at runtime.

Declaration
public static Task ValidateOfferCancel(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A OfferCancel Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the OfferCancel is malformed.

| Edit this page View Source

ValidateOfferCreate(Dictionary<string, object>)

Verify the form and type of a OfferCreate at runtime.

Declaration
public static Task ValidateOfferCreate(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A OfferCreate Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the OfferCreate is malformed.

| Edit this page View Source

ValidateOracleDelete(Dictionary<string, object>)

Verify the form and type of an OracleDelete at runtime.

Declaration
public static Task ValidateOracleDelete(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An OracleDelete Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the OracleDelete is malformed.

| Edit this page View Source

ValidateOracleSet(Dictionary<string, object>)

Verify the form and type of an OracleSet at runtime.

Declaration
public static Task ValidateOracleSet(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

An OracleSet Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the OracleSet is malformed.

| Edit this page View Source

ValidatePayment(Dictionary<string, object>)

Verify the form and type of a Payment at runtime.

Declaration
public static Task ValidatePayment(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A Payment Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the Payment is malformed.

| Edit this page View Source

ValidatePaymentChannelClaim(Dictionary<string, object>)

Verify the form and type of a PaymentChannelClaim at runtime.

Declaration
public static Task ValidatePaymentChannelClaim(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A PaymentChannelClaim Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the PaymentChannelClaim is malformed.

| Edit this page View Source

ValidatePaymentChannelCreate(Dictionary<string, object>)

Verify the form and type of a PaymentChannelCreate at runtime.

Declaration
public static Task ValidatePaymentChannelCreate(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A PaymentChannelCreate Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the PaymentChannelCreate is malformed.

| Edit this page View Source

ValidatePaymentChannelFund(Dictionary<string, object>)

Verify the form and type of a PaymentChannelFund at runtime.

Declaration
public static Task ValidatePaymentChannelFund(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A PaymentChannelFund Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the PaymentChannelFund is malformed.

| Edit this page View Source

ValidatePermissionedDomainDelete(Dictionary<string, object>)

Validates a PermissionedDomainDelete transaction.

Declaration
public static Task ValidatePermissionedDomainDelete(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A PermissionedDomainDelete transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the PermissionedDomainDelete is malformed.

| Edit this page View Source

ValidatePermissionedDomainSet(Dictionary<string, object>)

Validates a PermissionedDomainSet transaction.

Declaration
public static Task ValidatePermissionedDomainSet(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A PermissionedDomainSet transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the PermissionedDomainSet is malformed.

| Edit this page View Source

ValidateSetRegularKey(Dictionary<string, object>)

Verify the form and type of a SetRegularKey at runtime.

Declaration
public static Task ValidateSetRegularKey(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A SetRegularKey Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the SetRegularKey is malformed.

| Edit this page View Source

ValidateSignerListSet(Dictionary<string, object>)

Verify the form and type of a SignerListSet at runtime.

Declaration
public static Task ValidateSignerListSet(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A SignerListSet Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the SignerListSet is malformed.

| Edit this page View Source

ValidateTicketCreate(Dictionary<string, object>)

Verify the form and type of a TicketCreate at runtime.

Declaration
public static Task ValidateTicketCreate(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A TicketCreate Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the TicketCreate is malformed.

| Edit this page View Source

ValidateTrustSet(Dictionary<string, object>)

Verify the form and type of a TrustSet at runtime.

Declaration
public static Task ValidateTrustSet(Dictionary<string, object> tx)
Parameters
Type Name Description
Dictionary<string, object> tx

A TrustSet Transaction.

Returns
Type Description
Task
Exceptions
Type Condition
ValidationException

When the TrustSet is malformed.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX