XRPL.Payment (xrpl v1.0.0)

XRPL.Payment is a module to interact with payment modules on the XRP Ledger.

Payment channels are a tool for facilitating repeated, unidirectional payments, or temporary credit between two parties. Use these methods to work with payment channels.

Official documentation: https://xrpl.org/payment-channel-methods.html

Summary

Functions

Builds a changeset from the schema and params.

The channel_authorize method creates a signature that can be used to redeem a specific amount of XRP from a payment channel.

The channel_verify method verifies a signature that can be used to redeem a specific amount of XRP from a payment channel.

Returns the validated parameters or an error changeset.

Returns the validated parameters or an error changeset. Expects a schema to be defined with defparams.

Functions

Link to this function

changeset(name, params \\ %{}, opts \\ [])

Builds a changeset from the schema and params.

Link to this function

channel_authorize(params)

The channel_authorize method creates a signature that can be used to redeem a specific amount of XRP from a payment channel.

Official documentation: https://xrpl.org/docs/references/http-websocket-apis/public-api-methods/payment-channel-methods/channel_authorize/

Link to this function

channel_authorize!(params)

Link to this function

channel_verify(params)

The channel_verify method verifies a signature that can be used to redeem a specific amount of XRP from a payment channel.

Official documentation: https://xrpl.org/docs/references/http-websocket-apis/public-api-methods/payment-channel-methods/channel_verify/

Link to this function

channel_verify!(params)

Link to this function

validate(changeset)

@spec validate(changeset()) :: {:ok, params()} | {:error, changeset()}

Returns the validated parameters or an error changeset.

Link to this function

validate(name, params \\ %{}, opts \\ [])

@spec validate(name(), params(), opts()) :: {:ok, params()} | {:error, changeset()}

Returns the validated parameters or an error changeset. Expects a schema to be defined with defparams.

Link to this function

xrpl(method, params)

Link to this function

xrpl(method, validator, params)