Skip to content
docs

NearHistorySource

Defined in: wallet-near/src/history.ts:66

NEAR history from the nearblocks API, with an archival RPC for single transactions. Build it with createNearHistory.

  • HistorySource

readonly chain: string

Defined in: core/dist/index-QWdcwE6y.d.ts:231

CAIP-2 chain id this source serves.

HistorySource.chain

explorerTxUrl(hash): string

Defined in: core/dist/index-QWdcwE6y.d.ts:237

Explorer URL for a transaction.

string

string

HistorySource.explorerTxUrl


getTransaction(hash, address): Promise<NearChainTx | undefined>

Defined in: wallet-near/src/history.ts:68

One transaction by hash, normalized the same way (undefined when unknown / not yet indexed).

string

string

Promise<NearChainTx | undefined>

HistorySource.getTransaction


listActivity(address, query?): Promise<NearHistoryPage>

Defined in: wallet-near/src/history.ts:67

Newest first.

string

HistoryQuery

Promise<NearHistoryPage>

HistorySource.listActivity