XRPL.Account (xrpl v1.0.0)

XRPL.Account is a module to interact with accounts on the XRP Ledger. An account in the XRP Ledger represents a holder of XRP and a sender of transactions. Use these methods to work with account info.

Official RPC documentation https://xrpl.org/account-methods.html

Summary

Functions

The account_channels method returns information about an account's Payment Channels. This includes only channels where the specified account is the channel's source, not the destination. (A channel's "source" and "owner" are the same.) All information retrieved is relative to a particular version of the ledger.

The account_currencies command retrieves a list of currencies that an account can send or receive, based on its trust lines

The account_info command retrieves information about an account, its activity, and its XRP balance. All information retrieved is relative to a particular version of the ledger.

The account_lines command returns information about an account's trust lines, including balances in all non-XRP currencies and assets. All information retrieved is relative to a particular version of the ledger.

The account_nfts method returns a list of NFToken objects for the specified account.

The account_objects command returns the raw ledger format for all objects owned by an account. For a higher-level view of an account's trust lines and balances, see the account_lines method instead.

The account_offers method retrieves a list of offers made by a given account that are outstanding as of a particular ledger version.

The account_tx method retrieves a list of transactions that involved the specified account.

Builds a changeset from the schema and params.

The gateway_balances command calculates the total balances issued by a given account, optionally excluding amounts held by operational addresses.

The noripple_check command provides a quick way to check the status of the Default Ripple field for an account and the No Ripple flag of its trust lines, compared with the recommended settings.

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

account_channels(params)

The account_channels method returns information about an account's Payment Channels. This includes only channels where the specified account is the channel's source, not the destination. (A channel's "source" and "owner" are the same.) All information retrieved is relative to a particular version of the ledger.

Official documentation: https://xrpl.org/account_channels.html

Link to this function

account_channels!(params)

Link to this function

account_currencies(params)

The account_currencies command retrieves a list of currencies that an account can send or receive, based on its trust lines

Official documentation: https://xrpl.org/account_currencies.html

Link to this function

account_currencies!(params)

Link to this function

account_info(params)

The account_info command retrieves information about an account, its activity, and its XRP balance. All information retrieved is relative to a particular version of the ledger.

Official documentation: https://xrpl.org/account_info.html

Link to this function

account_info!(params)

Link to this function

account_lines(params)

The account_lines command returns information about an account's trust lines, including balances in all non-XRP currencies and assets. All information retrieved is relative to a particular version of the ledger.

Official documentation: https://xrpl.org/account_lines.html

Link to this function

account_lines!(params)

Link to this function

account_nfts(params)

The account_nfts method returns a list of NFToken objects for the specified account.

Official documentation: https://xrpl.org/account_nfts.html

Link to this function

account_nfts!(params)

Link to this function

account_objects(params)

The account_objects command returns the raw ledger format for all objects owned by an account. For a higher-level view of an account's trust lines and balances, see the account_lines method instead.

Ref: https://xrpl.org/account_objects.html

Link to this function

account_objects!(params)

Link to this function

account_offers(params)

The account_offers method retrieves a list of offers made by a given account that are outstanding as of a particular ledger version.

Ref: https://xrpl.org/account_offers.html

Link to this function

account_offers!(params)

Link to this function

account_tx(params)

The account_tx method retrieves a list of transactions that involved the specified account.

Ref: https://xrpl.org/account_tx.html

Link to this function

account_tx!(params)

Link to this function

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

Builds a changeset from the schema and params.

Link to this function

gateway_balances(params)

The gateway_balances command calculates the total balances issued by a given account, optionally excluding amounts held by operational addresses.

Ref: https://xrpl.org/gateway_balances.html

Link to this function

gateway_balances!(params)

Link to this function

noripple_check(params)

The noripple_check command provides a quick way to check the status of the Default Ripple field for an account and the No Ripple flag of its trust lines, compared with the recommended settings.

Ref: https://xrpl.org/noripple_check.html

Link to this function

noripple_check!(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)