Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

searchTxs

Search indexed transactions by hash or sender, paginated.

Signature

function searchTxs(
  client: Client,
  parameters: {
    hash?: string
    senderAddress?: string
    after?: string
    before?: string
    first?: number
    last?: number
    sortBy?: string
  },
): Promise<GraphqlQueryResult<IndexedTransaction>>

Example

import { createPublicClient, createTransport, testnet } from "@left-curve/sdk"
 
const client = createPublicClient({ chain: testnet, transport: createTransport() })
const page = await client.searchTxs({
  senderAddress: "0x1234567890abcdef1234567890abcdef12345678",
  first: 50,
})

Parameters

hashstring, optional. Filter by tx hash.

senderAddressstring, optional. Filter by sender.

after, before, first, last, sortBy — standard GraphQL pagination.

Returns

GraphqlQueryResult<IndexedTransaction>{ pageInfo, nodes }.

See also