Vara Explorer
Use the Vara Explorer web interface and integrate its HTTP API for transfers, transactions, and other network data.
Vara Explorer provides a web interface and a read-only HTTP API for Vara Network. The API exposes indexed, finalized history and selected state reads from finalized blocks.
Explorer Links
Append these paths to https://explorer.vara.network when linking to a record from an application.
| Record | Path | Identifier |
|---|---|---|
| Account | /account/{address} | SS58 address or 32-byte account ID in hex. The UI displays Vara SS58 addresses. |
| Account transfers | /account/{address}?tab=transfers | Account address with the transfers tab selected. |
| Block | /block/{heightOrHash} | Decimal block height or 32-byte block hash. |
| Transaction (extrinsic) | /extrinsic/{height}-{index} | Block height and zero-based extrinsic index within the block. |
| Transaction search by hash | /extrinsic/{hash} | A 32-byte extrinsic hash opens search results. Use the block height and index to link to a specific occurrence. |
| Public referendum | /referenda/{index} | Decimal referendum index. |
| Fellowship referendum | /referenda/{index}?assembly=fellowship | Decimal index in the Fellowship assembly. |
API URLs
| Endpoint | URL |
|---|---|
| Vara Mainnet API | https://explorer.vara.network/api/v1/networks/vara |
| JSON POST routes | https://explorer.vara.network with the full paths listed below |
| OpenAPI | Vara Explorer OpenAPI JSON |
In OpenAPI, {network} is the configured network identifier. Use vara for Vara Mainnet. The origin also exposes GET /health/live and GET /health/ready. Both return { "status": "ok" } on success. Readiness requires an active projection with an indexed head for the configured dataset.
Network API Methods
Paths in this section are relative to /api/v1/networks/vara. Lists marked as paginated accept limit and cursor. Query parameters are optional unless stated otherwise. Names of pallets, methods, and events in the extrinsic and event filters are case-sensitive.
Blocks, Extrinsics, and Events
| Method and path | Parameters | Result in data |
|---|---|---|
GET /status | — | Indexing status, indexed and finalized heads, lag, and history coverage. |
GET /search | Required q (1–2,048 characters). Accepts a height, height-index, hash, account address, or supported Explorer detail link. | Candidate records with kind, relative url, and identifying fields where available. |
GET /blocks | Paginated. Also accepts page. | Blocks in descending height order. |
GET /blocks/{heightOrHash} | Decimal height or block hash. | Block header fields, timestamp, extrinsic and event counts, and runtime information. |
GET /extrinsics | Paginated. Also accepts page, signed (true or false), address (signer), fromBlock, toBlock, pallet, method, and outcome (success, failed, unknown). | Extrinsics with hashes and outcomes. |
GET /extrinsics/{height}/{index} | Block height and extrinsic index. | Extrinsic details, including hash, signed, signer, pallet, method, outcome, error, actualFee, args, and calls. |
GET /events | Paginated. Also accepts page, fromBlock, toBlock, pallet, and name. | Events with indices, phases, pallet and event names, and arguments. |
GET /events/{height}/{index} | Block height and event index. | Event details. |
GET /blocks/{height}/extrinsics, GET /blocks/{height}/events, GET /extrinsics/{height}/{index}/events | Paginated. Also accepts page. | Extrinsics or events belonging to the specified block or extrinsic. |
GET /extrinsics/facets, GET /events/facets | — | Counts by pallet and call, or by pallet and event. |
Accounts and Transfers
| Method and path | Parameters | Result in data |
|---|---|---|
GET /accounts, GET /holders | Paginated. Both accept address. Holders also accepts sort (asc or desc, default desc). | Recently observed accounts or holders ranked by balance. Responses also include a top-level snapshot field. |
GET /accounts/{id}, GET /accounts/{id}/summary, GET /accounts/{id}/balance | Account address or ID. | Account observation data, indexed activity counts, or balance at a finalized RPC snapshot, respectively. |
GET /accounts/{id}/activity | Paginated. Also accepts kind, role, fromBlock, and toBlock. | Indexed account activity. kind accepts transaction, transfer, message, program, or voucher. |
GET /transfers | Paginated. Also accepts the transfer filters below. | Native VARA transfers. |
GET /transfers/summary | Transfer filters below. | Aggregate count and amount, both decimal strings. |
GET /accounts/{id}/transfers | Paginated. Also accepts direction, fromBlock, and toBlock. | Transfers involving the specified account. |
GET /extrinsics/{height}/{index}/transfers | Paginated. | Transfers recorded within the specified extrinsic. |
Programs, Messages, and Vouchers
| Method and path | Parameters | Result in data |
|---|---|---|
GET /programs, GET /codes, GET /messages, GET /vouchers | Paginated. The messages list also accepts dispatchStatus, fromBlock, and toBlock. | Gear programs, code, messages, or vouchers. |
GET /messages/facets | — | Counts by message dispatch status. |
GET /programs/{id}, GET /codes/{id}, GET /messages/{id}, GET /vouchers/{id} | Entity ID. Each also has a paginated /observations subroute. | Entity details or indexed observations. |
GET /programs/{id}/messages, GET /codes/{id}/programs | Paginated. The program's message list also accepts direction (incoming or outgoing), fromBlock, and toBlock. | Related messages or programs. |
GET /accounts/{id}/vouchers, GET /programs/{id}/vouchers, GET /extrinsics/{height}/{index}/vouchers, GET /extrinsics/{height}/{index}/messages | Paginated. | Related vouchers or observations. |
GET /messages/{id}/links, GET /messages/{id}/payload-decoding | Message ID. | Message relationships or the payload decoded using the registered interface. |
GET /messages/{id}/payload | Message ID. | Raw hex payload as a text/plain attachment, up to 1 MiB of decoded bytes. |
POST /messages/{id}/payload-decoding | JSON body with required interface string containing Sails IDL. | Payload decoded for this request using the supplied IDL. |
Staking, Governance, and Statistics
| Method and path | Parameters | Result in data |
|---|---|---|
GET /staking, GET /accounts/{id}/staking | Account address or ID for the account route. | Finalized staking overview or account staking state. |
GET /staking/rewards | Paginated. Also accepts address, addressRole (stash or recipient, default stash), kind (reward or slash), fromBlock, and toBlock. recipient requires an address. | Indexed rewards or slashes. |
GET /governance, GET /accounts/{id}/governance | assembly on /governance only (public or fellowship, default public). | Referenda and tracks for the chosen assembly, or an account's current votes and delegations. To look up one referendum, select its index from data.referenda. |
GET /governance/{index}/events | Paginated. Also accepts assembly (public or fellowship, default public). | Indexed events for the referendum. |
GET /governance/preimage/{hash}/{length} | 32-byte hash in lowercase hex and length in bytes (1–4,194,304). | Finalized state snapshot and a decoded call, which can be null. |
GET /charts, GET /market/price | days on /charts only (7, 30, or 90, default 30). | Daily network statistics, or the latest available USD quote (null when unavailable). |
Response Format and Pagination
Indexed responses generally contain data and meta. meta identifies the network, dataset, and projectionVersion. meta.coverage.from and meta.coverage.to describe the indexed height range, and meta.coverage.limitations describes coverage constraints. The balance and finalized-state endpoints put their snapshot inside data. Market price also returns only data. Search adds the top-level fields state, hasMore, and, where available, accountCandidate.
Paginated responses add page with hasNextPage, nextCursor, and total. page.total is always null. Use /transfers/summary when you need an exact count and amount for a set of transfer filters.
- Request the first page without a cursor.
limitranges from 1 to 100 and defaults to 25. - When
page.hasNextPageistrue, sendpage.nextCursoras thecursorquery parameter on the same route with the same filters. Treat the cursor as opaque. Indexed lists use the originalmeta.snapshotHeadfor continuation, whilemeta.indexedHeadcan advance. - Stop when
hasNextPageisfalse. Restart from the first page if the API returns409 CURSOR_EXPIRED.
The block, extrinsic, and event lists marked with page also support a one-based starting page from 1 to 400. A cursor takes precedence when both are supplied.
Transfer History
The network API derives transfers from finalized balances.Transfer events. With an account filter, the history includes sent and received transfers by default and lists a self-transfer once. Transfers are ordered by descending block height and event index. A successful transfer event can occur inside an extrinsic whose overall outcome is failed.
Filter for /transfers and /transfers/summary | Value |
|---|---|
address | SS58 address or 32-byte hex account ID. |
direction | sent or received. Requires address. |
fromBlock, toBlock | Inclusive decimal block heights. |
fromDate, toDate | Inclusive UTC calendar dates in YYYY-MM-DD format. |
minAmount, maxAmount | Inclusive unsigned decimal integers in the smallest VARA unit. |
Each transfer has height, eventIndex, extrinsicIndex, from, to, amount, and timestamp. When extrinsicIndex is present, use the height and index to open the corresponding extrinsic. A transfer can have extrinsicIndex: null.
EXPLORER=https://explorer.vara.network
API="$EXPLORER/api/v1/networks/vara"
ADDRESS=kGgg9woA6GrF6kpvTPHWLQpDhHiMvUkDzZG3iPshNyV43nSFR
curl --fail-with-body --get "$API/transfers" \
--data-urlencode "address=$ADDRESS" \
--data-urlencode 'direction=received' \
--data-urlencode 'minAmount=1000000000000' \
--data-urlencode 'limit=10'Transaction Lookup by Hash
Use GET /search with q=/extrinsic/{hash} to restrict the search to extrinsics. Search can return multiple occurrences of the same hash. Select the intended candidate by its height and index, then request GET /extrinsics/{height}/{index} and read data.outcome. A search with no matching extrinsic returns HTTP 200 with state: "not_found_in_indexed_range" and an empty data array.
# Set TX_HASH to a 0x-prefixed extrinsic hash from your application.
curl --fail-with-body --get "$API/search" \
--data-urlencode "q=/extrinsic/${TX_HASH:?Set TX_HASH to the extrinsic hash}"JSON POST Routes
Send these requests to the Explorer origin with Content-Type: application/json. A successful lookup or list response contains code: 0, message: "Success", generated_at, and data.
| Method and path | JSON body | Response |
|---|---|---|
POST /api/v2/scan/transfers | Required address. Optional page (0–1,000,000, default 0) and row (1–100, default 50). | data.count is the number of matching transfers and data.transfers is the requested page. Both directions are included. The queried account keeps its input spelling in from and to, and counterparties use Vara SS58. |
POST /api/scan/extrinsic | Required hash with 0x and 64 hex digits. Optional events_limit (0–100), accepted without including an event list in the response. | The latest indexed occurrence by block height and extrinsic index. With a known outcome, data contains success, finalized: true, pending: false, extrinsic_hash, extrinsic_index, call_module, block_num, and block_timestamp. |
POST /api/v2/scan/accounts | Required address, either a single address or an array of 1–100 addresses. | data.count and data.list with balances and signed extrinsic counts. |
POST /api/scan/account/tokens | Required address. | data.native with the native token balance breakdown. |
POST /api/scan/daily | Required category (transfer or extrinsic), start and end (YYYY-MM-DD in UTC, inclusive, at most 2,000 days apart), and format: "day". | data.list with daily totals and, for transfers, volumes. |
POST /api/v2/scan/events | Optional address, module, event_id, block_num, extrinsic_index (height-index), order (asc or desc), finalized, count_approx, page, and row (default 10). | data.count and data.events for finalized history. finalized: false yields an empty list. count_approx is accepted, and the count is exact. |
POST /api/scan/staking/era_stat | Required address. Optional page and row (default 100). | data.count and data.list of era reward estimates and available slash totals. |
POST /api/v2/scan/account/reward_slash | Required address. Optional category (Reward or Slash), claimed_filter (claimed or unclaimed), is_stash (default true), page, and row (default 10). | data.count and data.list. is_stash: false selects the historical payout recipient and applies to actual payouts. |
The paginated POST lists use offset pagination (page × row), with page ranging from 0 to 1,000,000 (default 0) and row ranging from 1 to 100. New indexed records can shift later pages. The transfer response includes from, to, amount, fee, hash, success, block_num, block_timestamp, nonce, event_index, extrinsic_index, module, asset_symbol, and asset_type. The hash and extrinsic_index fields can be empty strings when the corresponding extrinsic reference is unavailable.
For POST /api/scan/extrinsic, HTTP 200 with code: 1001 and data: null means the hash was absent from indexed history or its outcome was unknown. Read lookup.state (not_found_in_indexed_history or outcome_unknown), lookup.indexed_head, and lookup.coverage. The API reads finalized history and cannot determine the mempool status of a missing hash. A finalized failure is reported separately as code: 0 with data.success: false.
curl --fail-with-body "$EXPLORER/api/v2/scan/transfers" \
--json "{\"address\":\"$ADDRESS\",\"page\":0,\"row\":10}"
curl --fail-with-body "$EXPLORER/api/scan/extrinsic" \
--json "{\"hash\":\"${TX_HASH:?Set TX_HASH to the extrinsic hash}\"}"Addresses, Amounts, and Time
| Value | Format |
|---|---|
| Account input | A valid SS58 encoding of a 32-byte public key, including Vara prefix 137, or 0x followed by 64 hex digits. |
Account IDs and hashes in /api/v1 responses | Lowercase 0x-prefixed 32-byte hex strings. |
| Block height and indices | /api/v1 returns height as a decimal string and event and extrinsic indices as JSON integers. The POST history routes use numeric block_num and height-index strings for record coordinates. |
/api/v1 token amounts and fees | Integer strings in the smallest VARA unit. 1 VARA = 10^12 base units. Use BigInt for exact arithmetic. |
| POST token amounts and fees | Transfer amount and account-summary balance, lock, balance_lock, and reserved are decimal strings in VARA. Transfer fee, native token balance components, daily transfer_amount_total, and staking amounts are integer strings in base units when available. |
| Time | Block and transfer timestamp in /api/v1 use ISO 8601 UTC strings when available. The POST fields block_timestamp and generated_at use Unix seconds. An unavailable block timestamp is null. |
| Referendum timing | submitted, ended, decidingSince, and confirmingUntil are block heights as decimal strings, or null when unavailable. |
Authentication, CORS, and Errors
The routes described here require no API key or authentication. Cross-origin browser access is enabled for POST /api/v2/scan/transfers and POST /api/scan/extrinsic with Access-Control-Allow-Origin: *. Their OPTIONS preflights return 204, allow Content-Type and X-API-Key, and are cached for 600 seconds. The API does not require the X-API-Key header. The two routes expose the rate-limit and retry headers to browser code, including on API errors. To use the other routes from a frontend on a different origin, call them through your backend or a same-origin proxy.
The API defaults to 600 requests per 60 seconds per client IP and caps concurrent requests at 64 per API process. The two CORS preflights are handled before rate limiting. RateLimit-Limit is the client quota, RateLimit-Remaining is the remaining quota, and RateLimit-Reset is the number of seconds until it resets. When present, Retry-After and the JSON retryAfter field are also in seconds.
| HTTP status | Example codes | Client handling |
|---|---|---|
400 | INVALID_INPUT, INVALID_CURSOR | Check required parameters, address and number formats, filter ranges, and the cursor's route and filters. Unexpected parameters are rejected. |
404 | NOT_FOUND_IN_INDEXED_RANGE, NETWORK_NOT_FOUND | Check the network and identifier, and consult indexing coverage. |
409 | DATA_NOT_INDEXED, CURSOR_EXPIRED | Check indexing progress via /status, or restart pagination for an expired cursor. |
413 | PAYLOAD_TOO_LARGE | Check the request or resource size. |
429 | RATE_LIMITED, TOO_MANY_REQUESTS | Wait for Retry-After before retrying and reduce parallel requests. |
503 | TEMPORARILY_UNAVAILABLE, SYNCING, STATE_UNAVAILABLE | Retry with backoff and honor Retry-After when supplied. |
API error JSON includes code, message, status, and requestId, with optional details and retryAfter. On the two CORS-enabled POST routes, HTTP errors also include an error object with status. Check the HTTP status first, then inspect the application code for a successful HTTP response from the POST routes. Block, extrinsic, and event detail requests also support ETag and can return 304 Not Modified with an empty body when If-None-Match matches.
TypeScript Example
The example runs server-side with Node.js 24 and fetch. It reads up to two pages of account transfers using a cursor and checks one extrinsic by hash. Save it as explorer.ts and run node explorer.ts <address> <hash> with an account address and an extrinsic hash.
const explorer = 'https://explorer.vara.network';
const api = `${explorer}/api/v1/networks/vara`;
type Transfer = {
from: string;
to: string;
amount: string;
timestamp: string | null;
};
type TransferPage = {
data: Transfer[];
page: { hasNextPage: boolean; nextCursor: string | null };
};
type Lookup =
| { code: 0; data: { success: boolean; extrinsic_index: string } }
| {
code: 1001;
data: null;
lookup: { state: 'not_found_in_indexed_history' | 'outcome_unknown' };
};
async function readJson<T>(url: string, init?: RequestInit): Promise<T> {
const response = await fetch(url, init);
const body = await response.json().catch(() => undefined);
if (!response.ok) {
const retryAfter = response.headers.get('Retry-After') ?? body?.retryAfter;
const message = body?.message ?? response.statusText;
const retry = retryAfter == null ? '' : ` (retry after ${retryAfter} s)`;
throw new Error(`HTTP ${response.status}: ${message}${retry}`);
}
if (body === undefined) throw new Error('Expected a JSON response');
return body as T;
}
async function main(address: string, hash: string) {
const query = new URLSearchParams({ address, limit: '10' });
const first = await readJson<TransferPage>(`${api}/transfers?${query}`);
const transfers = [...first.data];
if (first.page.hasNextPage && first.page.nextCursor) {
query.set('cursor', first.page.nextCursor);
const next = await readJson<TransferPage>(`${api}/transfers?${query}`);
transfers.push(...next.data);
}
const total = transfers.reduce(
(sum, transfer) => sum + BigInt(transfer.amount),
0n,
);
console.log(`${transfers.length} transfers, ${total} base units`);
const result = await readJson<Lookup>(`${explorer}/api/scan/extrinsic`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ hash }),
});
if (result.code === 1001) {
console.log(result.lookup.state);
return;
}
console.log(
result.data.success ? 'Finalized successfully' : 'Finalized with a failure',
);
console.log(`${explorer}/extrinsic/${result.data.extrinsic_index}`);
}
const [address, hash] = process.argv.slice(2);
if (!address || !hash) {
throw new Error('Pass an account address and an extrinsic hash');
}
main(address, hash).catch((error: unknown) => {
console.error(error);
process.exitCode = 1;
});