Skip to content

NEARTransactionHistoryParams

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / NEARTransactionHistoryParams

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18951

Parameters for retrieving transaction history

rpcUrl: string

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18953

NEAR RPC URL


viewingPrivateKey: `0x${string}`

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18955

Viewing private key for scanning (hex)


spendingPrivateKey: `0x${string}`

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18957

Spending private key for address verification (hex)


optional network: "testnet" | "mainnet"

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18959

Network type


optional fromBlock: number

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18961

Start block height (optional)


optional toBlock: number

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18963

End block height (optional)


optional fromTimestamp: number

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18965

Start timestamp filter (milliseconds)


optional toTimestamp: number

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18967

End timestamp filter (milliseconds)


optional limit: number

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18969

Maximum transactions to return


optional cursor: string

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18971

Pagination cursor


optional typeFilter: NEARTransactionType[]

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18973

Filter by transaction types


optional tokenFilter: (string | null)[]

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18975

Filter by token contracts (null = native NEAR)


optional searchQuery: string

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18977

Search by transaction hash or address


optional timeout: number

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18979

Request timeout in milliseconds