UNPKG

@abstract-foundation/agw-client

Version:
23 lines 1.09 kB
import { type Account, type Chain, type Client, type GetCallsStatusParameters, type GetCallsStatusReturnType, type Transport } from "viem"; /** * Returns the status of a call batch that was sent via `sendCalls`. * * - Docs: https://viem.sh/docs/actions/wallet/getCallsStatus * - JSON-RPC Methods: [`wallet_getCallsStatus`](https://eips.ethereum.org/EIPS/eip-5792) * * @param client - Client to use * @returns Status of the calls. {@link GetCallsStatusReturnType} * * @example * import { createWalletClient, custom } from 'viem' * import { mainnet } from 'viem/chains' * import { getCallsStatus } from 'viem/actions' * * const client = createWalletClient({ * chain: mainnet, * transport: custom(window.ethereum), * }) * const { receipts, status } = await getCallsStatus(client, { id: '0xdeadbeef' }) */ export declare function getCallsStatus<chain extends Chain, account extends Account | undefined = undefined>(client: Client<Transport, chain, account>, parameters: GetCallsStatusParameters): Promise<GetCallsStatusReturnType>; //# sourceMappingURL=getCallsStatus.d.ts.map