POSTGet Native Token Balance Changes By Account

Data APIhttps://web3.nodit.io/v1/xrpl/mainnet/native/getNativeTokenBalanceChangesByAccount

Retrieves the native token balance change history for a specific account.

Path Parameters
chainstring (enum)required

Parameter to specify the target chain for the query.

networkstring (enum)required

Parameter to specify the network of the target chain. Supported networks may vary depending on the chain.

Request Body
accountAddressstringrequired

Parameter specifying the account address for balance query. It is a Base58-encoded string of 25-35 characters, always starting with "r".

fromLedgerstring

Parameter specifying the starting ledger for the query. You can enter one of the following formats:

  • ledger index: Enter ledger number as a decimal string
  • ledger hash: 64-character hexadecimal string (excluding 0x prefix)
  • ledger tag: Enter "earliest" or "latest" (oldest or most recent ledger)

Notes:

  • If provided without toLedger, results are queried from this ledger to the latest ledger.
  • fromLedger value cannot be greater than toLedger value.
  • If fromLedger and toLedger have the same value, only that ledger is queried.
  • "latest" for fromLedger is only allowed when toLedger is "latest".
toLedgerstring

Parameter specifying the ending ledger for the query. You can enter one of the following formats:

  • ledger index: Enter ledger number as a decimal string
  • ledger hash: 64-character hexadecimal string (excluding 0x prefix)
  • ledger tag: Enter "earliest" or "latest" (oldest or most recent ledger)

Notes:

  • If provided without fromLedger, results are queried from genesis ledger to this ledger.
  • toLedger value cannot be less than fromLedger value.
  • If fromLedger and toLedger have the same value, only that ledger is queried.
  • "earliest" for toLedger is only allowed when fromLedger is "earliest".
fromDatestring

Parameter specifying the start date for the query. Date must follow ISO 8601 format (YYYY-MM-DDThh:mm:ss{time zone}) including seconds.

Notes:

  • If provided without toDate, results are queried from this date to the latest ledger.
  • fromDate value must be equal to or earlier than toDate value.
  • If fromDate and toDate are the same, only ledgers from that date are queried.
  • This field cannot be used together with fromLedger and toLedger.
toDatestring

Parameter specifying the end date for the query. Date must follow ISO 8601 format (YYYY-MM-DDThh:mm:ss{time zone}) including seconds.

Notes:

  • If provided without fromDate, results are queried from genesis ledger creation to this date.
  • toDate value must be equal to or later than fromDate value.
  • If fromDate and toDate are the same, only ledgers from that date are queried.
  • This field cannot be used together with fromLedger and toLedger.
pageinteger

The page parameter specifies the data page to query. It accepts values up to 100; for pages exceeding 100, use the cursor pagination method.

The page and cursor parameters cannot be used together. If both page and cursor are empty, cursor pagination is used.

rppinteger

rpp stands for results per page and specifies the page size. You can specify a number greater than 0 and up to 100.

cursorstring

The cursor parameter supports pagination and data navigation between pages. Provide the cursor value from the previous page in the next request to load the next page of data.

The page and cursor parameters cannot be used together. If both page and cursor are empty, cursor pagination is used.

withCountboolean

Parameter specifying whether to include the count field in the response. The count field indicates the total number of requested data items. When set to true, the count field is included and response speed may be slower.

Responses
pageinteger

Field representing the page number specified in the page parameter. This field is only included in the response when a value greater than 0 is specified for the page parameter.

rppinteger

Field representing the number of results per page specified in the rpp parameter.

cursorstring

A field for cursor pagination. This value must be provided in the next request to load the next page of data.

countinteger

Field representing the total count of requested data. This field is only included in the response when true is set for the withCount parameter.

fromDatestring

Field representing the start of the query range in Date mode. Returned in ISO 8601 format.

toDatestring

Field representing the end of the query range in Date mode. Returned in ISO 8601 format.

fromBlockinteger

Field representing the start block height of the query range in Block mode.

toBlockinteger

Field representing the end block height of the query range in Block mode.

fromLedgerinteger

Field representing the start ledger index of the query range in Ledger mode.

toLedgerinteger

Field representing the end ledger index of the query range in Ledger mode.

ledgerIndexintegerrequired

Integer value indicating the creation order of the ledger, used to identify its position (sequence number) on the network. Required field in the Balance Changes query API.

예: 95444296

ledgerTimestampintegerrequired

The ledger's close time converted to a Unix timestamp. The close time recorded in the ledger header is expressed in seconds since the Ripple Epoch (January 1, 2000 00:00 UTC), which differs from the Unix Epoch (January 1, 1970 00:00 UTC) by 946,684,800 seconds. Thus ledgerTimestamp is the recorded close time plus 946,684,800 seconds. Required field in the Transfer query API.

예: 1744608171

transactionIndexintegerrequired

Index indicating the processing order of the transaction within the ledger. Used to determine the order of transactions in the ledger. Required field in the Balance Changes query API.

예: 2

transactionHashstringrequired

A 256-bit (64-digit hexadecimal) cryptographic hash that uniquely identifies the transaction. Used for transaction data integrity and identification. Required field in the Balance Changes query API.

예: 8BAD7583234AC463E09D6CF160E352DFF5B008FC071DD5226A53809D89E7F409

transactionTypestringrequired

String indicating the transaction type (Payment, OfferCreate, EscrowCreate, etc.). Required field in the Transfer query API.

예: OfferCreate

affectedNodesIndexintegerrequired

Index of the node within the AffectedNodes array.

예: 1

accountstringrequired

Account address whose balance was changed by the transaction. The account address is a Base58-encoded string 25-35 characters in length, starting with 'r'.

예: rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn

currencystringrequired

Indicates the currency code of the asset. Typically uses ISO 4217 standard codes (e.g. "USD", "EUR"), but 160-bit custom codes may also be used. Custom codes are expressed as 40-character hexadecimal strings and are used for proprietary assets defined by specific projects or platforms (e.g. "SOLO"). For XRP, the fixed string "XRP" is used in the currency field and is returned in the same structure as IOU assets.

예: USD

issuerstringrequired

The address of the account that issued the asset. Even with the same currency code, asset credibility and risk may vary by issuer. Thus, the XRP Ledger uniquely identifies assets by the combination of currency code and issuer. Each asset's trustworthiness largely depends on the issuer's reputation. This field is a Base58-encoded string 25-35 characters in length, always starting with 'r'. XRP is a native asset with no issuer; in that case, issuer is shown as an empty string ("").

예: rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq

previousBalancestringrequired

Amount of the asset before the change. For XRP, expressed in XRP units where 1 XRP equals 1,000,000 drops.

예: 1000.34

finalBalancestringrequired

Amount of the asset after the change. For XRP, expressed in XRP units where 1 XRP equals 1,000,000 drops.

예: 900.12

balanceChangestringrequired

Amount changed by the transaction, including whether it increased or decreased. For XRP, expressed in XRP units where 1 XRP equals 1,000,000 drops.

예: -100.22

X-API-KEY
RequestCU150
cURL
curl -X POST "https://web3.nodit.io/v1/xrpl/mainnet/native/getNativeTokenBalanceChangesByAccount" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "accountAddress": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
  "fromDate": "2026-01-01T00:00:00Z",
  "toDate": "2026-02-01T00:00:00Z",
  "page": 1,
  "rpp": 10
}'
Response
Example · 200
{
  "page": 0,
  "rpp": 0,
  "cursor": "string",
  "count": 0,
  "range": {
    "fromDate": "string",
    "toDate": "string",
    "fromBlock": 0,
    "toBlock": 0,
    "fromLedger": 0,
    "toLedger": 0
  },
  "items": [
    {
      "ledgerIndex": 95444296,
      "ledgerTimestamp": 1744608171,
      "transactionIndex": 2,
      "transactionHash": "8BAD7583234AC463E09D6CF160E352DFF5B008FC071DD5226A53809D89E7F409",
      "transactionType": "OfferCreate",
      "affectedNodesIndex": 1,
      "account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
      "currency": "USD",
      "issuer": "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq",
      "previousBalance": "1000.34",
      "finalBalance": "900.12",
      "balanceChange": "-100.22"
    }
  ]
}