Account

Get Account Details

Reads the account's substate/s from the top of the current ledger. Also returns all vaults under the account.

POSThttps://xrd.nownodes.io/core/state/account
Body
network*NetworkIdentifier (string)

The logical name of the network

Example: "{{network}}"
account_address*string

The Bech32m-encoded human readable version of the account's global address

Response

Current state response

Body
at_ledger_state*LedgerStateSummary (object)
info*Substate (object)
owner_role*Substate (object)
state*Substate (object)
vaults*array of VaultBalance (object)

All of the account's vaults

Request
const response = await fetch('https://xrd.nownodes.io/core/state/account', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "network": "{{network}}",
      "account_address": "text"
    }),
});
const data = await response.json();
Response
{
  "at_ledger_state": {
    "state_version": 0,
    "header_summary": {
      "epoch_round": {
        "epoch": 0,
        "round": 0
      },
      "ledger_hashes": {
        "state_tree_hash": "text",
        "transaction_tree_hash": "text",
        "receipt_tree_hash": "text"
      },
      "proposer_timestamp": {
        "unix_timestamp_ms": 0,
        "date_time": "text"
      }
    }
  },
  "info": {
    "substate_type": "BootLoaderModuleFieldVmBoot",
    "is_locked": false
  },
  "owner_role": {
    "substate_type": "BootLoaderModuleFieldVmBoot",
    "is_locked": false
  },
  "state": {
    "substate_type": "BootLoaderModuleFieldVmBoot",
    "is_locked": false
  },
  "vaults": [
    {
      "vault_entity": {
        "entity_type": "GlobalPackage",
        "is_global": false,
        "entity_address": "text"
      },
      "resource_amount": {
        "resource_type": "Fungible",
        "resource_address": "text"
      }
    }
  ]
}