Skip to main content
The Database API provides read-only access to blockchain state including accounts, witnesses, and global properties. Use these endpoints to query information without modifying the blockchain.

find_accounts

Find detailed information about one or more accounts.
import { createHiveChain } from "@hiveio/wax";

const chain = await createHiveChain();

const result = await chain.api.database_api.find_accounts({
  accounts: ["alice", "bob"],
  delayed_votes_active: true
});

console.log(result.accounts);

Parameters

accounts
string[]
required
Array of account names to retrieve
delayed_votes_active
boolean
Whether to include delayed votes information

Response

accounts
ApiAccount[]
Array of account objects
{
  "accounts": [
    {
      "id": 1234,
      "name": "alice",
      "balance": {
        "amount": "1000000",
        "precision": 3,
        "nai": "@@000000021"
      },
      "hbd_balance": {
        "amount": "50000",
        "precision": 3,
        "nai": "@@000000013"
      },
      "vesting_shares": {
        "amount": "5000000000",
        "precision": 6,
        "nai": "@@000000037"
      },
      "voting_manabar": {
        "current_mana": "4500000000",
        "last_update_time": 1709510400
      },
      "can_vote": true,
      "post_count": 42
    }
  ]
}

get_dynamic_global_properties

Get current global blockchain properties including block height, supply, and witness information.
import { createHiveChain } from "@hiveio/wax";

const chain = await createHiveChain();

const dgpo = await chain.api.database_api.get_dynamic_global_properties({});

console.log(`Head block: ${dgpo.head_block_number}`);
console.log(`Current witness: ${dgpo.current_witness}`);

Parameters

This endpoint takes no parameters.

Response

head_block_number
number
Current head block number
head_block_id
string
Current head block ID
time
string
Current blockchain time
current_witness
string
Name of current block producer
total_pow
string | number
Total proof of work
virtual_supply
NaiAsset
Virtual HIVE supply
current_supply
NaiAsset
Current HIVE supply
current_hbd_supply
NaiAsset
Current HBD supply
total_vesting_fund_hive
NaiAsset
Total HIVE in vesting fund
total_vesting_shares
NaiAsset
Total vesting shares (VESTS)
hbd_interest_rate
number
Current HBD interest rate in basis points
hbd_print_rate
number
Current HBD print rate
maximum_block_size
number
Maximum block size in bytes
last_irreversible_block_num
number
Last irreversible block number
participation_count
number
Witness participation count
{
  "head_block_number": 80000000,
  "head_block_id": "04c1c7a566fc0da66aee465714acee7346b48ac2",
  "time": "2026-03-04T12:00:00",
  "current_witness": "blocktrades",
  "total_pow": "514415",
  "virtual_supply": {
    "amount": "400000000000",
    "precision": 3,
    "nai": "@@000000021"
  },
  "current_supply": {
    "amount": "380000000000",
    "precision": 3,
    "nai": "@@000000021"
  },
  "hbd_interest_rate": 2000,
  "maximum_block_size": 65536,
  "last_irreversible_block_num": 79999970
}

find_witnesses

Find information about one or more witnesses.
import { createHiveChain } from "@hiveio/wax";

const chain = await createHiveChain();

const result = await chain.api.database_api.find_witnesses({
  owners: ["blocktrades", "good-karma"],
  delayed_votes_active: false
});

console.log(result.witnesses);

Parameters

owners
string[]
required
Array of witness account names
delayed_votes_active
boolean
required
Whether to include delayed votes information

Response

witnesses
ApiWitness[]
Array of witness objects with signing key, properties, and voting information

get_witness_schedule

Get the current witness schedule and median properties.
import { createHiveChain } from "@hiveio/wax";

const chain = await createHiveChain();

const schedule = await chain.api.database_api.get_witness_schedule({});

console.log(`Current witnesses: ${schedule.current_shuffled_witnesses}`);

Parameters

This endpoint takes no parameters.

Response

current_shuffled_witnesses
string[]
Array of current witness account names in shuffled order
num_scheduled_witnesses
number
Number of scheduled witnesses
median_props
object
Median witness properties
majority_version
string
Majority hardfork version

verify_authority

Verify that a transaction has the required authority signatures.
import { createHiveChain } from "@hiveio/wax";

const chain = await createHiveChain();

const result = await chain.api.database_api.verify_authority({
  trx: signedTransaction,
  pack: "hf26"
});

console.log(`Valid: ${result.valid}`);

Parameters

trx
ApiTransaction
required
The transaction to verify
pack
TTransactionPackType
required
Transaction pack type (e.g., “hf26”)

Response

valid
boolean
Whether the transaction has valid authority
{
  "valid": true
}

Build docs developers (and LLMs) love