accounts
Version:
Tempo Accounts SDK
26 lines • 1.38 kB
TypeScript
import { type Provider as ox_Provider } from 'ox';
import { type Chain, type Client, type Transport } from 'viem';
import type { tempo } from 'viem/chains';
import type * as Store from './Store.js';
/** Resolves a viem Client for a given chain ID (cached). */
export declare function fromChainId(chainId: number | undefined, options: fromChainId.Options): Client<Transport, typeof tempo>;
export declare namespace fromChainId {
type Options = {
/** Supported chains. */
chains: readonly [Chain, ...Chain[]];
/** Fee payer configuration. A URL string, config object, or `false` to opt out. */
feePayer?: string | false | {
/** Fee payer service URL. */
url: string;
/** Signing precedence. @default 'fee-payer-first' */
precedence?: 'fee-payer-first' | 'user-first' | undefined;
} | undefined;
/** Provider instance. When set, the transport routes requests through the provider first, falling back to HTTP for unknown methods. */
provider?: ox_Provider.Provider | undefined;
/** Reactive state store. */
store: Store.Store;
/** Per-chain transports keyed by chain ID. When omitted, defaults to `http()` (uses the chain's default RPC URL). */
transports?: Record<number, Transport> | undefined;
};
}
//# sourceMappingURL=Client.d.ts.map