accounts
Version:
Tempo Accounts SDK
1,804 lines • 100 kB
TypeScript
import { RpcSchema } from 'ox';
import * as z from 'zod/mini';
export { defineItem, from } from './internal/schema.js';
/**
* A single JSON-RPC method definition with Zod schemas for
* the method name, parameters, and return type.
*/
export type Item = {
/** Method name as a Zod literal. */
method: z.ZodMiniLiteral<string>;
/** Parameters schema, or `undefined` if the method takes no params. */
params: z.ZodMiniType | undefined;
/** Return type schema, or `undefined` if the method returns nothing. */
returns: z.ZodMiniType | undefined;
};
/** An array of JSON-RPC method definitions. */
export type Schema = readonly Item[];
/** Inferred wire-format type for a schema item — raw JSON-RPC `{ method, params, returns }`. */
export type Encoded<item extends Item> = {
method: z.input<item['method']>;
params: item['params'] extends z.ZodMiniType ? z.input<item['params']> : undefined;
returns: item['returns'] extends z.ZodMiniType ? z.input<item['returns']> : undefined;
};
/** Inferred decoded type for a schema item — after codec transforms are applied. */
export type Decoded<item extends Item> = {
method: z.input<item['method']>;
params: item['params'] extends z.ZodMiniType ? z.output<item['params']> : undefined;
returns: item['returns'] extends z.ZodMiniType ? z.output<item['returns']> : undefined;
};
/**
* Transforms a {@link Schema} into an Ox-compatible `RpcSchema.Generic` union.
*
* Uses `z.input` (the wire/encoded form — hex strings) since Ox operates
* on the raw JSON-RPC wire format.
*/
export type ToOx<schema extends Schema> = {
[key in keyof schema]: RpcSchema.From<{
Request: schema[key]['params'] extends z.ZodMiniType ? undefined extends z.input<schema[key]['params']> ? {
method: z.input<schema[key]['method']>;
params?: z.input<schema[key]['params']>;
} : {
method: z.input<schema[key]['method']>;
params: z.input<schema[key]['params']>;
} : {
method: z.input<schema[key]['method']>;
};
ReturnType: schema[key]['returns'] extends z.ZodMiniType ? z.input<schema[key]['returns']> : undefined;
}>;
}[number];
/**
* Transforms a {@link Schema} into a Viem-compatible `RpcSchema` tuple.
*
* Uses `z.input` (the wire/encoded form — hex strings) since Viem's
* RPC schema types operate on the raw JSON-RPC wire format.
*/
export type ToViem<schema extends Schema> = {
[key in keyof schema]: {
Method: z.input<schema[key]['method']>;
Parameters: schema[key]['params'] extends z.ZodMiniType ? z.input<schema[key]['params']> : undefined;
ReturnType: schema[key]['returns'] extends z.ZodMiniType ? z.input<schema[key]['returns']> : undefined;
};
};
/** All provider-handled RPC method definitions. */
export declare const schema: readonly [{
readonly method: z.ZodMiniLiteral<"eth_accounts">;
readonly params: undefined;
readonly returns: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
}, {
readonly method: z.ZodMiniLiteral<"eth_chainId">;
readonly params: undefined;
readonly returns: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, {
readonly method: z.ZodMiniLiteral<"eth_fillTransaction">;
readonly params: z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
accessList: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
storageKeys: z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>;
}, z.core.$strip>>>;
calls: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
value: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
}, z.core.$strip>>>>;
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
feePayerSignature: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
feeToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
gas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
keyAuthorization: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniType<Omit<import("ox/tempo/KeyAuthorization").Rpc, "expiry" | "limits" | "chainId"> & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
chainId: bigint;
expiry: number | null | undefined;
limits?: readonly {
token: import("ox/tempo/KeyAuthorization").RpcTokenLimit["token"];
limit: bigint;
period?: number | undefined;
}[] | undefined;
}, import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}, z.core.$ZodTypeInternals<Omit<import("ox/tempo/KeyAuthorization").Rpc, "expiry" | "limits" | "chainId"> & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
chainId: bigint;
expiry: number | null | undefined;
limits?: readonly {
token: import("ox/tempo/KeyAuthorization").RpcTokenLimit["token"];
limit: bigint;
period?: number | undefined;
}[] | undefined;
}, import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}>>, z.ZodMiniCustom<import("viem/chains").KeyAuthorizationSigned<bigint, number, `0x${string}`>, import("viem/chains").KeyAuthorizationSigned<bigint, number, `0x${string}`>>>>;
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
nonceKey: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
validAfter: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
validBefore: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
value: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
}, z.core.$strip>], null>>;
readonly returns: z.ZodMiniObject<{
capabilities: z.ZodMiniObject<{
balanceDiffs: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
decimals: z.ZodMiniNumber<number>;
direction: z.ZodMiniEnum<{
incoming: "incoming";
outgoing: "outgoing";
}>;
formatted: z.ZodMiniString<string>;
name: z.ZodMiniString<string>;
recipients: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
symbol: z.ZodMiniString<string>;
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, z.core.$strip>>>>>;
error: z.ZodMiniOptional<z.ZodMiniObject<{
abiItem: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
errorName: z.ZodMiniString<string>;
message: z.ZodMiniString<string>;
}, z.core.$strip>>;
fee: z.ZodMiniOptional<z.ZodMiniObject<{
amount: z.ZodMiniTemplateLiteral<`0x${string}`>;
decimals: z.ZodMiniNumber<number>;
formatted: z.ZodMiniString<string>;
symbol: z.ZodMiniString<string>;
}, z.core.$strip>>;
requireFunds: z.ZodMiniOptional<z.ZodMiniObject<{
amount: z.ZodMiniTemplateLiteral<`0x${string}`>;
decimals: z.ZodMiniNumber<number>;
formatted: z.ZodMiniString<string>;
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
symbol: z.ZodMiniString<string>;
}, z.core.$strip>>;
autoSwap: z.ZodMiniOptional<z.ZodMiniObject<{
maxIn: z.ZodMiniObject<{
decimals: z.ZodMiniNumber<number>;
formatted: z.ZodMiniString<string>;
name: z.ZodMiniString<string>;
symbol: z.ZodMiniString<string>;
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, z.core.$strip>;
minOut: z.ZodMiniObject<{
decimals: z.ZodMiniNumber<number>;
formatted: z.ZodMiniString<string>;
name: z.ZodMiniString<string>;
symbol: z.ZodMiniString<string>;
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, z.core.$strip>;
slippage: z.ZodMiniNumber<number>;
}, z.core.$strip>>;
sponsor: z.ZodMiniOptional<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
}, z.core.$strip>>;
sponsored: z.ZodMiniBoolean<boolean>;
}, z.core.$strip>;
tx: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
}, z.core.$strip>;
}, {
readonly method: z.ZodMiniLiteral<"eth_requestAccounts">;
readonly params: undefined;
readonly returns: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
}, {
readonly method: z.ZodMiniLiteral<"eth_sendTransaction">;
readonly params: z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
accessList: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
storageKeys: z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>;
}, z.core.$strip>>>;
calls: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
value: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
}, z.core.$strip>>>>;
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
feePayerSignature: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
feeToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
gas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
keyAuthorization: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniType<Omit<import("ox/tempo/KeyAuthorization").Rpc, "expiry" | "limits" | "chainId"> & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
chainId: bigint;
expiry: number | null | undefined;
limits?: readonly {
token: import("ox/tempo/KeyAuthorization").RpcTokenLimit["token"];
limit: bigint;
period?: number | undefined;
}[] | undefined;
}, import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}, z.core.$ZodTypeInternals<Omit<import("ox/tempo/KeyAuthorization").Rpc, "expiry" | "limits" | "chainId"> & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
chainId: bigint;
expiry: number | null | undefined;
limits?: readonly {
token: import("ox/tempo/KeyAuthorization").RpcTokenLimit["token"];
limit: bigint;
period?: number | undefined;
}[] | undefined;
}, import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}>>, z.ZodMiniCustom<import("viem/chains").KeyAuthorizationSigned<bigint, number, `0x${string}`>, import("viem/chains").KeyAuthorizationSigned<bigint, number, `0x${string}`>>>>;
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
nonceKey: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
validAfter: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
validBefore: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
value: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
}, z.core.$strip>], null>>;
readonly returns: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, {
readonly method: z.ZodMiniLiteral<"eth_sendTransactionSync">;
readonly params: z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
accessList: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
storageKeys: z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>;
}, z.core.$strip>>>;
calls: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
value: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
}, z.core.$strip>>>>;
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
feePayerSignature: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
feeToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
gas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
keyAuthorization: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniType<Omit<import("ox/tempo/KeyAuthorization").Rpc, "expiry" | "limits" | "chainId"> & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
chainId: bigint;
expiry: number | null | undefined;
limits?: readonly {
token: import("ox/tempo/KeyAuthorization").RpcTokenLimit["token"];
limit: bigint;
period?: number | undefined;
}[] | undefined;
}, import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}, z.core.$ZodTypeInternals<Omit<import("ox/tempo/KeyAuthorization").Rpc, "expiry" | "limits" | "chainId"> & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
chainId: bigint;
expiry: number | null | undefined;
limits?: readonly {
token: import("ox/tempo/KeyAuthorization").RpcTokenLimit["token"];
limit: bigint;
period?: number | undefined;
}[] | undefined;
}, import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}>>, z.ZodMiniCustom<import("viem/chains").KeyAuthorizationSigned<bigint, number, `0x${string}`>, import("viem/chains").KeyAuthorizationSigned<bigint, number, `0x${string}`>>>>;
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
nonceKey: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
validAfter: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
validBefore: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
value: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
}, z.core.$strip>], null>>;
readonly returns: z.ZodMiniObject<{
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
contractAddress: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
cumulativeGasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
effectiveGasPrice: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
feePayer: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
feeToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
from: z.ZodMiniTemplateLiteral<`0x${string}`>;
gasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
logs: z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
logIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
removed: z.ZodMiniBoolean<boolean>;
topics: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
}, z.core.$strip>>;
logsBloom: z.ZodMiniTemplateLiteral<`0x${string}`>;
root: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
status: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniEnum<{
success: "success";
reverted: "reverted";
}>>;
to: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
type: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, z.core.$strip>;
}, {
readonly method: z.ZodMiniLiteral<"eth_signTransaction">;
readonly params: z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
accessList: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
storageKeys: z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>;
}, z.core.$strip>>>;
calls: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
value: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
}, z.core.$strip>>>>;
capabilities: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
feePayerSignature: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
feeToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
gas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
keyAuthorization: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniType<Omit<import("ox/tempo/KeyAuthorization").Rpc, "expiry" | "limits" | "chainId"> & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
chainId: bigint;
expiry: number | null | undefined;
limits?: readonly {
token: import("ox/tempo/KeyAuthorization").RpcTokenLimit["token"];
limit: bigint;
period?: number | undefined;
}[] | undefined;
}, import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}, z.core.$ZodTypeInternals<Omit<import("ox/tempo/KeyAuthorization").Rpc, "expiry" | "limits" | "chainId"> & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
chainId: bigint;
expiry: number | null | undefined;
limits?: readonly {
token: import("ox/tempo/KeyAuthorization").RpcTokenLimit["token"];
limit: bigint;
period?: number | undefined;
}[] | undefined;
}, import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}>>, z.ZodMiniCustom<import("viem/chains").KeyAuthorizationSigned<bigint, number, `0x${string}`>, import("viem/chains").KeyAuthorizationSigned<bigint, number, `0x${string}`>>>>;
keyData: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
nonceKey: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
validAfter: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
validBefore: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
value: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
}, z.core.$strip>], null>>;
readonly returns: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, {
readonly method: z.ZodMiniLiteral<"eth_signTypedData_v4">;
readonly params: z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>], null>>;
readonly returns: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, {
readonly method: z.ZodMiniLiteral<"personal_sign">;
readonly params: z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTemplateLiteral<`0x${string}`>], null>>;
readonly returns: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, {
readonly method: z.ZodMiniLiteral<"wallet_authorizeAccessKey">;
readonly params: z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
address: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
expiry: z.ZodMiniNumber<number>;
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
period: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
}, z.core.$strip>>>>;
publicKey: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
scopes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
selector: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
recipients: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
}, z.core.$strip>>>>;
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
}, z.core.$strip>]>>;
}, z.core.$strip>], null>>;
readonly returns: z.ZodMiniObject<{
keyAuthorization: z.ZodMiniCodec<z.ZodMiniType<Omit<import("ox/tempo/KeyAuthorization").Rpc, "expiry" | "limits" | "chainId"> & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
chainId: bigint;
expiry: number | null | undefined;
limits?: readonly {
token: import("ox/tempo/KeyAuthorization").RpcTokenLimit["token"];
limit: bigint;
period?: number | undefined;
}[] | undefined;
}, import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}, z.core.$ZodTypeInternals<Omit<import("ox/tempo/KeyAuthorization").Rpc, "expiry" | "limits" | "chainId"> & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
chainId: bigint;
expiry: number | null | undefined;
limits?: readonly {
token: import("ox/tempo/KeyAuthorization").RpcTokenLimit["token"];
limit: bigint;
period?: number | undefined;
}[] | undefined;
}, import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}>>, z.ZodMiniCustom<import("viem/chains").KeyAuthorizationSigned<bigint, number, `0x${string}`>, import("viem/chains").KeyAuthorizationSigned<bigint, number, `0x${string}`>>>;
rootAddress: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, z.core.$strip>;
}, {
readonly method: z.ZodMiniLiteral<"wallet_connect">;
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
capabilities: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
digest: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
authorizeAccessKey: z.ZodMiniOptional<z.ZodMiniObject<{
address: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
expiry: z.ZodMiniNumber<number>;
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
period: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
}, z.core.$strip>>>>;
scopes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
selector: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
recipients: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
}, z.core.$strip>>>>;
publicKey: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
}, z.core.$strip>>;
auth: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
challenge: z.ZodMiniOptional<z.ZodMiniString<string>>;
verify: z.ZodMiniOptional<z.ZodMiniString<string>>;
logout: z.ZodMiniOptional<z.ZodMiniString<string>>;
resources: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
returnToken: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
}, z.core.$strip>]>>;
identity: z.ZodMiniOptional<z.ZodMiniObject<{
email: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>, z.ZodMiniObject<{
address: z.ZodMiniOptional<z.ZodMiniString<string>>;
domains: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
nonce: z.ZodMiniOptional<z.ZodMiniString<string>>;
}, z.core.$strip>]>>;
}, z.core.$strip>>;
method: z.ZodMiniLiteral<"register">;
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
message: z.ZodMiniString<string>;
}, z.core.$strip>>;
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
on: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"login">, z.ZodMiniLiteral<"register">]>>;
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
}, z.core.$strip>]>>;
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
}, z.core.$strip>, z.ZodMiniObject<{
digest: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
credentialId: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
authorizeAccessKey: z.ZodMiniOptional<z.ZodMiniObject<{
address: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
expiry: z.ZodMiniNumber<number>;
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
period: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
}, z.core.$strip>>>>;
scopes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
selector: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
recipients: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
}, z.core.$strip>>>>;
publicKey: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
}, z.core.$strip>>;
auth: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
challenge: z.ZodMiniOptional<z.ZodMiniString<string>>;
verify: z.ZodMiniOptional<z.ZodMiniString<string>>;
logout: z.ZodMiniOptional<z.ZodMiniString<string>>;
resources: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
returnToken: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
}, z.core.$strip>]>>;
identity: z.ZodMiniOptional<z.ZodMiniObject<{
email: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>, z.ZodMiniObject<{
address: z.ZodMiniOptional<z.ZodMiniString<string>>;
domains: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
nonce: z.ZodMiniOptional<z.ZodMiniString<string>>;
}, z.core.$strip>]>>;
}, z.core.$strip>>;
method: z.ZodMiniOptional<z.ZodMiniLiteral<"login">>;
personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
message: z.ZodMiniString<string>;
}, z.core.$strip>>;
selectAccount: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
on: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"login">, z.ZodMiniLiteral<"register">]>>;
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
}, z.core.$strip>]>>;
}, z.core.$strip>]>>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
}, z.core.$strip>], null>>>;
readonly returns: z.ZodMiniObject<{
accounts: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
capabilities: z.ZodMiniObject<{
identity: z.ZodMiniOptional<z.ZodMiniObject<{
email: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
idToken: z.ZodMiniOptional<z.ZodMiniString<string>>;
}, z.core.$strip>>;
keyAuthorization: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniType<Omit<import("ox/tempo/KeyAuthorization").Rpc, "expiry" | "limits" | "chainId"> & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
chainId: bigint;
expiry: number | null | undefined;
limits?: readonly {
token: import("ox/tempo/KeyAuthorization").RpcTokenLimit["token"];
limit: bigint;
period?: number | undefined;
}[] | undefined;
}, import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}, z.core.$ZodTypeInternals<Omit<import("ox/tempo/KeyAuthorization").Rpc, "expiry" | "limits" | "chainId"> & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
chainId: bigint;
expiry: number | null | undefined;
limits?: readonly {
token: import("ox/tempo/KeyAuthorization").RpcTokenLimit["token"];
limit: bigint;
period?: number | undefined;
}[] | undefined;
}, import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}>>, z.ZodMiniCustom<import("viem/chains").KeyAuthorizationSigned<bigint, number, `0x${string}`>, import("viem/chains").KeyAuthorizationSigned<bigint, number, `0x${string}`>>>>;
personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
message: z.ZodMiniString<string>;
keyAuthorization: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
}, z.core.$strip>>;
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
username: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
auth: z.ZodMiniOptional<z.ZodMiniObject<{
token: z.ZodMiniOptional<z.ZodMiniString<string>>;
}, z.core.$loose>>;
}, z.core.$strip>;
}, z.core.$strip>>>;
}, z.core.$strip>;
}, {
readonly method: z.ZodMiniLiteral<"wallet_deposit">;
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
address: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
intent: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"applePay">, z.ZodMiniLiteral<"credits">, z.ZodMiniLiteral<"crypto">, z.ZodMiniLiteral<"faucet">, z.ZodMiniLiteral<"mach">, z.ZodMiniLiteral<"referralCode">, z.ZodMiniLiteral<"x">]>>;
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
}, z.core.$strip>], null>>>;
readonly returns: z.ZodMiniOptional<z.ZodMiniObject<{
receipts: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
contractAddress: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
cumulativeGasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
effectiveGasPrice: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
feePayer: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
feeToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
from: z.ZodMiniTemplateLiteral<`0x${string}`>;
gasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
logs: z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
logIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
removed: z.ZodMiniBoolean<boolean>;
topics: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
}, z.core.$strip>>;
logsBloom: z.ZodMiniTemplateLiteral<`0x${string}`>;
root: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
status: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniEnum<{
success: "success";
reverted: "reverted";
}>>;
to: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
type: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, z.core.$strip>>>>;
}, z.core.$strip>>;
}, {
readonly method: z.ZodMiniLiteral<"wallet_depositZone">;
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
token: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
zoneId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
}, z.core.$strip>], null>>>;
readonly returns: z.ZodMiniObject<{
receipt: z.ZodMiniObject<{
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
contractAddress: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
cumulativeGasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
effectiveGasPrice: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
feePayer: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
feeToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
from: z.ZodMiniTemplateLiteral<`0x${string}`>;
gasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
logs: z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
logIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
removed: z.ZodMiniBoolean<boolean>;
topics: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
}, z.core.$strip>>;
logsBloom: z.ZodMiniTemplateLiteral<`0x${string}`>;
root: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
status: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniEnum<{
success: "success";
reverted: "reverted";
}>>;
to: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
type: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, z.core.$strip>;
}, z.core.$strip>;
}, {
readonly method: z.ZodMiniLiteral<"wallet_disconnect">;
readonly params: undefined;
readonly returns: undefined;
}, {
readonly method: z.ZodMiniLiteral<"wallet_getBalances">;
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
account: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
tokens: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
}, z.core.$strip>], null>>>;
readonly returns: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
balance: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
decimals: z.ZodMiniNumber<number>;
display: z.ZodMiniString<string>;
name: z.ZodMiniString<string>;
symbol: z.ZodMiniString<string>;
}, z.core.$strip>>>;
}, {
readonly method: z.ZodMiniLiteral<"wallet_getCallsStatus">;
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniString<string>], null>>>;
readonly returns: z.ZodMiniObject<{
atomic: z.ZodMiniBoolean<boolean>;
chainId: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
id: z.ZodMiniString<string>;
receipts: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
contractAddress: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
cumulativeGasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
effectiveGasPrice: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
feePayer: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
feeToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
from: z.ZodMiniTemplateLiteral<`0x${string}`>;
gasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
logs: z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
logIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
removed: z.ZodMiniBoolean<boolean>;
topics: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
}, z.core.$strip>>;
logsBloom: z.ZodMiniTemplateLiteral<`0x${string}`>;
root: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
status: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniEnum<{
success: "success";
reverted: "reverted";
}>>;
to: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
type: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, z.core.$strip>>>;
status: z.ZodMiniNumber<number>;
version: z.ZodMiniString<string>;
}, z.core.$strip>;
}, {
readonly method: z.ZodMiniLiteral<"wallet_getCapabilities">;
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniUnion<readonly [z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>], null>, z.ZodMiniTuple<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>], null>]>>>;
readonly returns: z.ZodMiniRecord<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniObject<{
accessKeys: z.ZodMiniOptional<z.ZodMiniObject<{
status: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"supported">, z.ZodMiniLiteral<"unsupported">]>;
}, z.core.$strip>>;
atomic: z.ZodMiniObject<{
status: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"supported">, z.ZodMiniLiteral<"ready">, z.ZodMiniLiteral<"unsupported">]>;
}, z.core.$strip>;
feePayer: z.ZodMiniOptional<z.ZodMiniObject<{
status: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"supported">, z.ZodMiniLiteral<"unsupported">]>;
}, z.core.$strip>>;
}, z.core.$strip>>;
}, {
readonly method: z.ZodMiniLiteral<"wallet_revokeAccessKey">;
readonly params: z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
accessKeyAddress: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, z.core.$strip>], null>>;
readonly returns: undefined;
}, {
readonly method: z.ZodMiniLiteral<"wallet_updateAccessKey">;
readonly params: z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
accessKeyAddress: z.ZodMiniTemplateLiteral<`0x${string}`>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
limits: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
}, z.core.$strip>>>;
}, z.core.$strip>], null>>;
readonly returns: undefined;
}, {
readonly method: z.ZodMiniLiteral<"wallet_transfer">;
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
amount: z.ZodMiniString<string>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
editable: z.ZodMiniOptional<z.ZodMiniLiteral<false>>;
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
memo: z.ZodMiniOptional<z.ZodMiniString<string>>;
to: z.ZodMiniTemplateLiteral<`0x${string}`>;
token: z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>;
}, z.core.$strip>, z.ZodMiniObject<{
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
editable: z.ZodMiniLiteral<true>;
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
memo: z.ZodMiniOptional<z.ZodMiniString<string>>;
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
}, z.core.$strip>], "editable">], null>>>;
readonly returns: z.ZodMiniObject<{
chainId: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
receipt: z.ZodMiniObject<{
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
contractAddress: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
cumulativeGasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
effectiveGasPrice: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
feePayer: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
feeToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
from: z.ZodMiniTemplateLiteral<`0x${string}`>;
gasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
logs: z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
logIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
removed: z.ZodMiniBoolean<boolean>;
topics: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
}, z.core.$strip>>;
logsBloom: z.ZodMiniTemplateLiteral<`0x${string}`>;
root: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
status: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniEnum<{
success: "success";
reverted: "reverted";
}>>;
to: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
type: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, z.core.$strip>;
}, z.core.$strip>;
}, {
readonly method: z.ZodMiniLiteral<"wallet_sendCalls">;
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
atomicRequired: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
calls: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
value: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
}, z.core.$strip>>>;
capabilities: z.ZodMiniOptional<z.ZodMiniObject<{
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
sync: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
}, z.core.$strip>>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
}, z.core.$strip>], null>>>;
readonly returns: z.ZodMiniObject<{
atomic: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
capabilities: z.ZodMiniOptional<z.ZodMiniObject<{
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
sync: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
}, z.core.$strip>>;
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
id: z.ZodMiniString<string>;
receipts: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
contractAddress: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
cumulativeGasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
effectiveGasPrice: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
feePayer: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
feeToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
from: z.ZodMiniTemplateLiteral<`0x${string}`>;
gasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
logs: z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
logIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
removed: z.ZodMiniBoolean<boolean>;
topics: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
}, z.core.$strip>>;
logsBloom: z.ZodMiniTemplateLiteral<`0x${string}`>;
root: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
status: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniEnum<{
success: "success";
reverted: "reverted";
}>>;
to: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
type: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, z.core.$strip>>>;
status: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
}, z.core.$strip>;
}, {
readonly method: z.ZodMiniLiteral<"wallet_swap">;
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
pairToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
slippage: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
token: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
type: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"buy">, z.ZodMiniLiteral<"sell">]>>;
}, z.core.$strip>], null>>>;
readonly returns: z.ZodMiniObject<{
receipt: z.ZodMiniObject<{
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
contractAddress: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
cumulativeGasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
effectiveGasPrice: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
feePayer: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
feeToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
from: z.ZodMiniTemplateLiteral<`0x${string}`>;
gasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
logs: z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
logIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
removed: z.ZodMiniBoolean<boolean>;
topics: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
}, z.core.$strip>>;
logsBloom: z.ZodMiniTemplateLiteral<`0x${string}`>;
root: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
status: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniEnum<{
success: "success";
reverted: "reverted";
}>>;
to: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
type: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, z.core.$strip>;
}, z.core.$strip>;
}, {
readonly method: z.ZodMiniLiteral<"wallet_switchEthereumChain">;
readonly params: z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
chainId: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
}, z.core.$strip>], null>>;
readonly returns: undefined;
}, {
readonly method: z.ZodMiniLiteral<"wallet_withdrawZone">;
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
token: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
zoneId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
}, z.core.$strip>], null>>>;
readonly returns: z.ZodMiniObject<{
receipt: z.ZodMiniObject<{
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
contractAddress: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
cumulativeGasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
effectiveGasPrice: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
feePayer: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
feeToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
from: z.ZodMiniTemplateLiteral<`0x${string}`>;
gasUsed: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
logs: z.ZodMiniArray<z.ZodMiniObject<{
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
blockNumber: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
logIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
removed: z.ZodMiniBoolean<boolean>;
topics: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
}, z.core.$strip>>;
logsBloom: z.ZodMiniTemplateLiteral<`0x${string}`>;
root: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
status: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniEnum<{
success: "success";
reverted: "reverted";
}>>;
to: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
transactionHash: z.ZodMiniTemplateLiteral<`0x${string}`>;
transactionIndex: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
type: z.ZodMiniTemplateLiteral<`0x${string}`>;
}, z.core.$strip>;
}, z.core.$strip>;
}];
/** Ox-compatible RPC schema union for the provider. */
export type Ox = RpcSchema.Eth | ToOx<typeof schema>;
export declare const ox: Ox;
/** Viem-compatible RPC schema tuple for the provider. */
export type Viem = ToViem<typeof schema>;
export declare const viem: readonly [{
Method: "eth_accounts";
Parameters: undefined;
ReturnType: readonly `0x${string}`[];
}, {
Method: "eth_chainId";
Parameters: undefined;
ReturnType: `0x${string}`;
}, {
Method: "eth_fillTransaction";
Parameters: readonly [{
accessList?: {
address: `0x${string}`;
storageKeys: `0x${string}`[];
}[] | undefined;
calls?: readonly {
data?: `0x${string}` | undefined;
to?: `0x${string}` | undefined;
value?: `0x${string}` | undefined;
}[] | undefined;
capabilities?: Record<string, unknown> | undefined;
chainId?: `0x${string}` | undefined;
data?: `0x${string}` | undefined;
feePayer?: string | boolean | undefined;
feePayerSignature?: Record<string, unknown> | undefined;
feeToken?: `0x${string}` | undefined;
from?: `0x${string}` | undefined;
gas?: `0x${string}` | undefined;
keyAuthorization?: (import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}) | undefined;
keyData?: `0x${string}` | undefined;
keyId?: `0x${string}` | undefined;
keyType?: "secp256k1" | "p256" | "webAuthn" | undefined;
maxFeePerGas?: `0x${string}` | undefined;
maxPriorityFeePerGas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
nonceKey?: `0x${string}` | undefined;
to?: `0x${string}` | undefined;
validAfter?: `0x${string}` | undefined;
validBefore?: `0x${string}` | undefined;
value?: `0x${string}` | undefined;
}];
ReturnType: {
capabilities: {
sponsored: boolean;
balanceDiffs?: Record<`0x${string}`, readonly {
address: `0x${string}`;
decimals: number;
direction: "incoming" | "outgoing";
formatted: string;
name: string;
recipients: readonly `0x${string}`[];
symbol: string;
value: `0x${string}`;
}[]> | undefined;
error?: {
errorName: string;
message: string;
abiItem?: Record<string, unknown> | undefined;
data?: `0x${string}` | undefined;
} | undefined;
fee?: {
amount: `0x${string}`;
decimals: number;
formatted: string;
symbol: string;
} | undefined;
requireFunds?: {
amount: `0x${string}`;
decimals: number;
formatted: string;
token: `0x${string}`;
symbol: string;
} | undefined;
autoSwap?: {
maxIn: {
decimals: number;
formatted: string;
name: string;
symbol: string;
token: `0x${string}`;
value: `0x${string}`;
};
minOut: {
decimals: number;
formatted: string;
name: string;
symbol: string;
token: `0x${string}`;
value: `0x${string}`;
};
slippage: number;
} | undefined;
sponsor?: {
address: `0x${string}`;
name?: string | undefined;
url?: string | undefined;
} | undefined;
};
tx: Record<string, unknown>;
};
}, {
Method: "eth_requestAccounts";
Parameters: undefined;
ReturnType: readonly `0x${string}`[];
}, {
Method: "eth_sendTransaction";
Parameters: readonly [{
accessList?: {
address: `0x${string}`;
storageKeys: `0x${string}`[];
}[] | undefined;
calls?: readonly {
data?: `0x${string}` | undefined;
to?: `0x${string}` | undefined;
value?: `0x${string}` | undefined;
}[] | undefined;
capabilities?: Record<string, unknown> | undefined;
chainId?: `0x${string}` | undefined;
data?: `0x${string}` | undefined;
feePayer?: string | boolean | undefined;
feePayerSignature?: Record<string, unknown> | undefined;
feeToken?: `0x${string}` | undefined;
from?: `0x${string}` | undefined;
gas?: `0x${string}` | undefined;
keyAuthorization?: (import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}) | undefined;
keyData?: `0x${string}` | undefined;
keyId?: `0x${string}` | undefined;
keyType?: "secp256k1" | "p256" | "webAuthn" | undefined;
maxFeePerGas?: `0x${string}` | undefined;
maxPriorityFeePerGas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
nonceKey?: `0x${string}` | undefined;
to?: `0x${string}` | undefined;
validAfter?: `0x${string}` | undefined;
validBefore?: `0x${string}` | undefined;
value?: `0x${string}` | undefined;
}];
ReturnType: `0x${string}`;
}, {
Method: "eth_sendTransactionSync";
Parameters: readonly [{
accessList?: {
address: `0x${string}`;
storageKeys: `0x${string}`[];
}[] | undefined;
calls?: readonly {
data?: `0x${string}` | undefined;
to?: `0x${string}` | undefined;
value?: `0x${string}` | undefined;
}[] | undefined;
capabilities?: Record<string, unknown> | undefined;
chainId?: `0x${string}` | undefined;
data?: `0x${string}` | undefined;
feePayer?: string | boolean | undefined;
feePayerSignature?: Record<string, unknown> | undefined;
feeToken?: `0x${string}` | undefined;
from?: `0x${string}` | undefined;
gas?: `0x${string}` | undefined;
keyAuthorization?: (import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}) | undefined;
keyData?: `0x${string}` | undefined;
keyId?: `0x${string}` | undefined;
keyType?: "secp256k1" | "p256" | "webAuthn" | undefined;
maxFeePerGas?: `0x${string}` | undefined;
maxPriorityFeePerGas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
nonceKey?: `0x${string}` | undefined;
to?: `0x${string}` | undefined;
validAfter?: `0x${string}` | undefined;
validBefore?: `0x${string}` | undefined;
value?: `0x${string}` | undefined;
}];
ReturnType: {
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
contractAddress: `0x${string}` | null;
cumulativeGasUsed: `0x${string}`;
effectiveGasPrice: `0x${string}`;
from: `0x${string}`;
gasUsed: `0x${string}`;
logs: {
address: `0x${string}`;
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
data: `0x${string}`;
logIndex: `0x${string}`;
removed: boolean;
topics: readonly `0x${string}`[];
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
}[];
logsBloom: `0x${string}`;
status: `0x${string}`;
to: `0x${string}` | null;
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
type: `0x${string}`;
blobGasPrice?: `0x${string}` | undefined;
blobGasUsed?: `0x${string}` | undefined;
feePayer?: `0x${string}` | undefined;
feeToken?: `0x${string}` | undefined;
root?: `0x${string}` | undefined;
};
}, {
Method: "eth_signTransaction";
Parameters: readonly [{
accessList?: {
address: `0x${string}`;
storageKeys: `0x${string}`[];
}[] | undefined;
calls?: readonly {
data?: `0x${string}` | undefined;
to?: `0x${string}` | undefined;
value?: `0x${string}` | undefined;
}[] | undefined;
capabilities?: Record<string, unknown> | undefined;
chainId?: `0x${string}` | undefined;
data?: `0x${string}` | undefined;
feePayer?: string | boolean | undefined;
feePayerSignature?: Record<string, unknown> | undefined;
feeToken?: `0x${string}` | undefined;
from?: `0x${string}` | undefined;
gas?: `0x${string}` | undefined;
keyAuthorization?: (import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}) | undefined;
keyData?: `0x${string}` | undefined;
keyId?: `0x${string}` | undefined;
keyType?: "secp256k1" | "p256" | "webAuthn" | undefined;
maxFeePerGas?: `0x${string}` | undefined;
maxPriorityFeePerGas?: `0x${string}` | undefined;
nonce?: `0x${string}` | undefined;
nonceKey?: `0x${string}` | undefined;
to?: `0x${string}` | undefined;
validAfter?: `0x${string}` | undefined;
validBefore?: `0x${string}` | undefined;
value?: `0x${string}` | undefined;
}];
ReturnType: `0x${string}`;
}, {
Method: "eth_signTypedData_v4";
Parameters: readonly [`0x${string}`, string];
ReturnType: `0x${string}`;
}, {
Method: "personal_sign";
Parameters: readonly [`0x${string}`, `0x${string}`];
ReturnType: `0x${string}`;
}, {
Method: "wallet_authorizeAccessKey";
Parameters: readonly [{
expiry: number;
address?: `0x${string}` | undefined;
chainId?: `0x${string}` | undefined;
keyType?: "secp256k1" | "p256" | "webAuthn" | undefined;
limits?: readonly {
token: `0x${string}`;
limit: `0x${string}`;
period?: number | undefined;
}[] | undefined;
publicKey?: `0x${string}` | undefined;
scopes?: readonly {
address: `0x${string}`;
selector?: string | undefined;
recipients?: readonly `0x${string}`[] | undefined;
}[] | undefined;
showDeposit?: boolean | {
amount?: string | undefined;
displayName?: string | undefined;
token?: string | undefined;
} | undefined;
}];
ReturnType: {
keyAuthorization: import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
};
rootAddress: `0x${string}`;
};
}, {
Method: "wallet_connect";
Parameters: readonly [{
capabilities?: {
method: "register";
digest?: `0x${string}` | undefined;
authorizeAccessKey?: {
expiry: number;
address?: `0x${string}` | undefined;
limits?: readonly {
token: `0x${string}`;
limit: `0x${string}`;
period?: number | undefined;
}[] | undefined;
scopes?: readonly {
address: `0x${string}`;
selector?: string | undefined;
recipients?: readonly `0x${string}`[] | undefined;
}[] | undefined;
publicKey?: `0x${string}` | undefined;
chainId?: `0x${string}` | undefined;
keyType?: "secp256k1" | "p256" | "webAuthn" | undefined;
} | undefined;
auth?: string | {
url?: string | undefined;
challenge?: string | undefined;
verify?: string | undefined;
logout?: string | undefined;
resources?: readonly string[] | undefined;
returnToken?: boolean | undefined;
} | undefined;
identity?: {
email?: string | boolean | {
address?: string | undefined;
domains?: string[] | undefined;
nonce?: string | undefined;
} | undefined;
} | undefined;
name?: string | undefined;
personalSign?: {
message: string;
} | undefined;
showDeposit?: boolean | {
amount?: string | undefined;
displayName?: string | undefined;
on?: "register" | "login" | undefined;
token?: string | undefined;
} | undefined;
userId?: string | undefined;
} | {
digest?: `0x${string}` | undefined;
credentialId?: string | string[] | undefined;
authorizeAccessKey?: {
expiry: number;
address?: `0x${string}` | undefined;
limits?: readonly {
token: `0x${string}`;
limit: `0x${string}`;
period?: number | undefined;
}[] | undefined;
scopes?: readonly {
address: `0x${string}`;
selector?: string | undefined;
recipients?: readonly `0x${string}`[] | undefined;
}[] | undefined;
publicKey?: `0x${string}` | undefined;
chainId?: `0x${string}` | undefined;
keyType?: "secp256k1" | "p256" | "webAuthn" | undefined;
} | undefined;
auth?: string | {
url?: string | undefined;
challenge?: string | undefined;
verify?: string | undefined;
logout?: string | undefined;
resources?: readonly string[] | undefined;
returnToken?: boolean | undefined;
} | undefined;
identity?: {
email?: string | boolean | {
address?: string | undefined;
domains?: string[] | undefined;
nonce?: string | undefined;
} | undefined;
} | undefined;
method?: "login" | undefined;
personalSign?: {
message: string;
} | undefined;
selectAccount?: boolean | undefined;
showDeposit?: boolean | {
amount?: string | undefined;
displayName?: string | undefined;
on?: "register" | "login" | undefined;
token?: string | undefined;
} | undefined;
} | undefined;
chainId?: `0x${string}` | undefined;
version?: string | undefined;
}] | undefined;
ReturnType: {
accounts: readonly {
address: `0x${string}`;
capabilities: {
identity?: {
email?: string | null | undefined;
idToken?: string | undefined;
} | undefined;
keyAuthorization?: (import("ox/tempo/KeyAuthorization").Rpc & {
address?: import("ox/tempo/KeyAuthorization").Rpc["keyId"] | undefined;
}) | undefined;
personalSign?: {
message: string;
keyAuthorization?: `0x${string}` | undefined;
} | undefined;
signature?: `0x${string}` | undefined;
username?: string | null | undefined;
auth?: {
[x: string]: unknown;
token?: string | undefined;
} | undefined;
};
}[];
};
}, {
Method: "wallet_deposit";
Parameters: readonly [{
address?: `0x${string}` | undefined;
amount?: string | undefined;
chainId?: `0x${string}` | undefined;
displayName?: string | undefined;
intent?: "credits" | "x" | "applePay" | "crypto" | "faucet" | "mach" | "referralCode" | undefined;
token?: string | undefined;
}] | undefined;
ReturnType: {
receipts?: readonly {
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
contractAddress: `0x${string}` | null;
cumulativeGasUsed: `0x${string}`;
effectiveGasPrice: `0x${string}`;
from: `0x${string}`;
gasUsed: `0x${string}`;
logs: {
address: `0x${string}`;
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
data: `0x${string}`;
logIndex: `0x${string}`;
removed: boolean;
topics: readonly `0x${string}`[];
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
}[];
logsBloom: `0x${string}`;
status: `0x${string}`;
to: `0x${string}` | null;
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
type: `0x${string}`;
blobGasPrice?: `0x${string}` | undefined;
blobGasUsed?: `0x${string}` | undefined;
feePayer?: `0x${string}` | undefined;
feeToken?: `0x${string}` | undefined;
root?: `0x${string}` | undefined;
}[] | undefined;
} | undefined;
}, {
Method: "wallet_depositZone";
Parameters: readonly [{
amount?: string | undefined;
feePayer?: string | boolean | undefined;
token?: `0x${string}` | undefined;
zoneId?: `0x${string}` | undefined;
}] | undefined;
ReturnType: {
receipt: {
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
contractAddress: `0x${string}` | null;
cumulativeGasUsed: `0x${string}`;
effectiveGasPrice: `0x${string}`;
from: `0x${string}`;
gasUsed: `0x${string}`;
logs: {
address: `0x${string}`;
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
data: `0x${string}`;
logIndex: `0x${string}`;
removed: boolean;
topics: readonly `0x${string}`[];
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
}[];
logsBloom: `0x${string}`;
status: `0x${string}`;
to: `0x${string}` | null;
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
type: `0x${string}`;
blobGasPrice?: `0x${string}` | undefined;
blobGasUsed?: `0x${string}` | undefined;
feePayer?: `0x${string}` | undefined;
feeToken?: `0x${string}` | undefined;
root?: `0x${string}` | undefined;
};
};
}, {
Method: "wallet_disconnect";
Parameters: undefined;
ReturnType: undefined;
}, {
Method: "wallet_getBalances";
Parameters: readonly [{
account?: `0x${string}` | undefined;
chainId?: `0x${string}` | undefined;
tokens?: readonly `0x${string}`[] | undefined;
}] | undefined;
ReturnType: readonly {
address: `0x${string}`;
balance: `0x${string}`;
decimals: number;
display: string;
name: string;
symbol: string;
}[];
}, {
Method: "wallet_getCallsStatus";
Parameters: readonly [string] | undefined;
ReturnType: {
atomic: boolean;
chainId: `0x${string}`;
id: string;
status: number;
version: string;
receipts?: {
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
contractAddress: `0x${string}` | null;
cumulativeGasUsed: `0x${string}`;
effectiveGasPrice: `0x${string}`;
from: `0x${string}`;
gasUsed: `0x${string}`;
logs: {
address: `0x${string}`;
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
data: `0x${string}`;
logIndex: `0x${string}`;
removed: boolean;
topics: readonly `0x${string}`[];
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
}[];
logsBloom: `0x${string}`;
status: `0x${string}`;
to: `0x${string}` | null;
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
type: `0x${string}`;
blobGasPrice?: `0x${string}` | undefined;
blobGasUsed?: `0x${string}` | undefined;
feePayer?: `0x${string}` | undefined;
feeToken?: `0x${string}` | undefined;
root?: `0x${string}` | undefined;
}[] | undefined;
};
}, {
Method: "wallet_getCapabilities";
Parameters: readonly [`0x${string}`] | readonly [`0x${string}`, readonly `0x${string}`[]] | undefined;
ReturnType: Record<`0x${string}`, {
atomic: {
status: "supported" | "unsupported" | "ready";
};
accessKeys?: {
status: "supported" | "unsupported";
} | undefined;
feePayer?: {
status: "supported" | "unsupported";
} | undefined;
}>;
}, {
Method: "wallet_revokeAccessKey";
Parameters: readonly [{
address: `0x${string}`;
accessKeyAddress: `0x${string}`;
}];
ReturnType: undefined;
}, {
Method: "wallet_updateAccessKey";
Parameters: readonly [{
address: `0x${string}`;
accessKeyAddress: `0x${string}`;
limits: readonly {
token: `0x${string}`;
limit: `0x${string}`;
}[];
chainId?: `0x${string}` | undefined;
}];
ReturnType: undefined;
}, {
Method: "wallet_transfer";
Parameters: readonly [{
amount: string;
to: `0x${string}`;
token: string;
chainId?: `0x${string}` | undefined;
editable?: false | undefined;
feePayer?: string | boolean | undefined;
from?: `0x${string}` | undefined;
memo?: string | undefined;
} | {
editable: true;
amount?: string | undefined;
chainId?: `0x${string}` | undefined;
feePayer?: string | boolean | undefined;
memo?: string | undefined;
to?: `0x${string}` | undefined;
token?: string | undefined;
}] | undefined;
ReturnType: {
chainId: `0x${string}`;
receipt: {
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
contractAddress: `0x${string}` | null;
cumulativeGasUsed: `0x${string}`;
effectiveGasPrice: `0x${string}`;
from: `0x${string}`;
gasUsed: `0x${string}`;
logs: {
address: `0x${string}`;
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
data: `0x${string}`;
logIndex: `0x${string}`;
removed: boolean;
topics: readonly `0x${string}`[];
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
}[];
logsBloom: `0x${string}`;
status: `0x${string}`;
to: `0x${string}` | null;
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
type: `0x${string}`;
blobGasPrice?: `0x${string}` | undefined;
blobGasUsed?: `0x${string}` | undefined;
feePayer?: `0x${string}` | undefined;
feeToken?: `0x${string}` | undefined;
root?: `0x${string}` | undefined;
};
};
}, {
Method: "wallet_sendCalls";
Parameters: readonly [{
calls: readonly {
data?: `0x${string}` | undefined;
to?: `0x${string}` | undefined;
value?: `0x${string}` | undefined;
}[];
atomicRequired?: boolean | undefined;
capabilities?: {
feePayer?: string | boolean | undefined;
sync?: boolean | undefined;
} | undefined;
chainId?: `0x${string}` | undefined;
from?: `0x${string}` | undefined;
version?: string | undefined;
}] | undefined;
ReturnType: {
id: string;
atomic?: boolean | undefined;
capabilities?: {
feePayer?: string | boolean | undefined;
sync?: boolean | undefined;
} | undefined;
chainId?: `0x${string}` | undefined;
receipts?: {
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
contractAddress: `0x${string}` | null;
cumulativeGasUsed: `0x${string}`;
effectiveGasPrice: `0x${string}`;
from: `0x${string}`;
gasUsed: `0x${string}`;
logs: {
address: `0x${string}`;
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
data: `0x${string}`;
logIndex: `0x${string}`;
removed: boolean;
topics: readonly `0x${string}`[];
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
}[];
logsBloom: `0x${string}`;
status: `0x${string}`;
to: `0x${string}` | null;
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
type: `0x${string}`;
blobGasPrice?: `0x${string}` | undefined;
blobGasUsed?: `0x${string}` | undefined;
feePayer?: `0x${string}` | undefined;
feeToken?: `0x${string}` | undefined;
root?: `0x${string}` | undefined;
}[] | undefined;
status?: number | undefined;
version?: string | undefined;
};
}, {
Method: "wallet_swap";
Parameters: readonly [{
amount?: string | undefined;
pairToken?: `0x${string}` | undefined;
slippage?: number | undefined;
token?: `0x${string}` | undefined;
type?: "buy" | "sell" | undefined;
}] | undefined;
ReturnType: {
receipt: {
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
contractAddress: `0x${string}` | null;
cumulativeGasUsed: `0x${string}`;
effectiveGasPrice: `0x${string}`;
from: `0x${string}`;
gasUsed: `0x${string}`;
logs: {
address: `0x${string}`;
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
data: `0x${string}`;
logIndex: `0x${string}`;
removed: boolean;
topics: readonly `0x${string}`[];
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
}[];
logsBloom: `0x${string}`;
status: `0x${string}`;
to: `0x${string}` | null;
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
type: `0x${string}`;
blobGasPrice?: `0x${string}` | undefined;
blobGasUsed?: `0x${string}` | undefined;
feePayer?: `0x${string}` | undefined;
feeToken?: `0x${string}` | undefined;
root?: `0x${string}` | undefined;
};
};
}, {
Method: "wallet_switchEthereumChain";
Parameters: readonly [{
chainId: `0x${string}`;
}];
ReturnType: undefined;
}, {
Method: "wallet_withdrawZone";
Parameters: readonly [{
amount?: string | undefined;
token?: `0x${string}` | undefined;
zoneId?: `0x${string}` | undefined;
}] | undefined;
ReturnType: {
receipt: {
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
contractAddress: `0x${string}` | null;
cumulativeGasUsed: `0x${string}`;
effectiveGasPrice: `0x${string}`;
from: `0x${string}`;
gasUsed: `0x${string}`;
logs: {
address: `0x${string}`;
blockHash: `0x${string}`;
blockNumber: `0x${string}`;
data: `0x${string}`;
logIndex: `0x${string}`;
removed: boolean;
topics: readonly `0x${string}`[];
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
}[];
logsBloom: `0x${string}`;
status: `0x${string}`;
to: `0x${string}` | null;
transactionHash: `0x${string}`;
transactionIndex: `0x${string}`;
type: `0x${string}`;
blobGasPrice?: `0x${string}` | undefined;
blobGasUsed?: `0x${string}` | undefined;
feePayer?: `0x${string}` | undefined;
feeToken?: `0x${string}` | undefined;
root?: `0x${string}` | undefined;
};
};
}];
/** Derives a union of wire-format request shapes from a {@link Schema}. */
type ToRequestInput<schema extends Schema> = {
[key in keyof schema]: schema[key]['params'] extends z.ZodMiniType ? {
method: z.input<schema[key]['method']>;
params: z.input<schema[key]['params']>;
} : {
method: z.input<schema[key]['method']>;
};
}[number];
/** Derives a union of decoded request shapes from a {@link Schema}. */
type ToRequestOutput<schema extends Schema> = {
[key in keyof schema]: schema[key]['params'] extends z.ZodMiniType ? {
method: z.output<schema[key]['method']>;
params: z.output<schema[key]['params']>;
} : {
method: z.output<schema[key]['method']>;
};
}[number];
/** Discriminated union of all provider-handled RPC requests. */
export declare const Request: z.ZodMiniType<ToRequestOutput<typeof schema>, ToRequestInput<typeof schema>>;
export type Request = ToRequestOutput<typeof schema>;
//# sourceMappingURL=Schema.d.ts.map