@reservoir0x/relay-sdk
Version:
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
881 lines • 455 kB
TypeScript
import type { RelayChain } from './types/index.js';
import { LogLevel, log as logUtil } from './utils/logger.js';
import * as actions from './actions/index.js';
import * as utils from './utils/index.js';
/**
* RelayClient Configuration Options
* @param source Used to manually override the source domain used to attribute local orders
* @param logLevel Log level from 0-4, the higher the more verbose.
* @param maxPollingAttemptsBeforeTimeout The maximum number of attempts the synced api is polled before timing out. The api is polled every 5 secs (default is 30)
*/
export type RelayClientOptions = {
baseApiUrl?: string;
source?: string;
logLevel?: LogLevel;
pollingInterval?: number;
maxPollingAttemptsBeforeTimeout?: number;
chains?: RelayChain[];
useGasFeeEstimations?: boolean;
uiVersion?: string;
logger?: (message: Parameters<typeof logUtil>['0'], level: LogLevel) => void;
confirmationPollingInterval?: number;
};
export declare class RelayClient {
version: string;
uiVersion?: string;
baseApiUrl: string;
source?: string;
logLevel: LogLevel;
pollingInterval?: number;
confirmationPollingInterval?: number;
maxPollingAttemptsBeforeTimeout?: number;
useGasFeeEstimations: boolean;
chains: RelayChain[];
log(message: Parameters<typeof logUtil>['0'], level?: LogLevel): void;
readonly utils: {
executeSteps: typeof utils.executeSteps;
setParams: typeof utils.setParams;
pollUntilOk: typeof utils.pollUntilOk;
pollUntilHasData: typeof utils.pollUntilHasData;
request: typeof utils.request;
APIError: typeof utils.APIError;
isAPIError: typeof utils.isAPIError;
log: (params: any[], level: LogLevel, currentLevel: LogLevel) => void;
LogLevel: typeof LogLevel;
axios: import("axios").AxiosInstance;
prepareCallTransaction: typeof utils.prepareCallTransaction;
adaptViemWallet: (wallet: {
account: import("viem").Account | undefined;
batch?: {
multicall?: boolean | {
batchSize?: number | undefined;
wait?: number | undefined;
} | undefined;
} | undefined;
cacheTime: number;
ccipRead?: false | {
request?: ((parameters: import("viem").CcipRequestParameters) => Promise<`0x${string}`>) | undefined;
} | undefined;
chain: import("viem/chains").Chain | undefined;
key: string;
name: string;
pollingInterval: number;
request: import("viem").EIP1193RequestFn<import("viem").WalletRpcSchema>;
transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
type: string;
uid: string;
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
deployContract: <const abi extends readonly unknown[] | import("viem").Abi, chainOverride extends import("viem/chains").Chain | undefined>(args: import("viem").DeployContractParameters<abi, import("viem/chains").Chain | undefined, import("viem").Account | undefined, chainOverride>) => Promise<`0x${string}`>;
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
getCallsStatus: (parameters: import("viem").GetCallsStatusParameters) => Promise<{
id: string;
chainId: number;
version: string;
atomic: boolean;
capabilities?: {
[key: string]: any;
} | {
[x: string]: any;
} | undefined;
receipts?: import("viem").WalletCallReceipt<bigint, "success" | "reverted">[] | undefined;
statusCode: number;
status: "failure" | "pending" | "success" | undefined;
}>;
getCapabilities: <chainId extends number | undefined>(parameters?: import("viem").GetCapabilitiesParameters<chainId> | undefined) => Promise<(chainId extends number ? {
[x: string]: any;
atomic?: {
status: "supported" | "ready" | "unsupported";
} | undefined;
unstable_addSubAccount?: {
keyTypes: ("address" | "p256" | "webcrypto-p256" | "webauthn-p256")[];
supported: boolean;
} | undefined;
paymasterService?: {
supported: boolean;
} | undefined;
} : import("viem").WalletCapabilitiesRecord<import("viem").Capabilities<{
[x: string]: any;
atomic?: {
status: "supported" | "ready" | "unsupported";
} | undefined;
unstable_addSubAccount?: {
keyTypes: ("address" | "p256" | "webcrypto-p256" | "webauthn-p256")[];
supported: boolean;
} | undefined;
paymasterService?: {
supported: boolean;
} | undefined;
}>, number>) extends infer T ? { [K in keyof T]: (chainId extends number ? {
[x: string]: any;
atomic?: {
status: "supported" | "ready" | "unsupported";
} | undefined;
unstable_addSubAccount?: {
keyTypes: ("address" | "p256" | "webcrypto-p256" | "webauthn-p256")[];
supported: boolean;
} | undefined;
paymasterService?: {
supported: boolean;
} | undefined;
} : import("viem").WalletCapabilitiesRecord<import("viem").Capabilities<{
[x: string]: any;
atomic?: {
status: "supported" | "ready" | "unsupported";
} | undefined;
unstable_addSubAccount?: {
keyTypes: ("address" | "p256" | "webcrypto-p256" | "webauthn-p256")[];
supported: boolean;
} | undefined;
paymasterService?: {
supported: boolean;
} | undefined;
}>, number>)[K]; } : never>;
getChainId: () => Promise<number>;
getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
prepareAuthorization: (parameters: import("viem/_types/actions/wallet/prepareAuthorization.js").PrepareAuthorizationParameters<import("viem").Account | undefined>) => Promise<import("viem/_types/actions/wallet/prepareAuthorization.js").PrepareAuthorizationReturnType>;
prepareTransactionRequest: <const request extends import("viem").PrepareTransactionRequestRequest<import("viem/chains").Chain | undefined, chainOverride_1>, chainOverride_1 extends import("viem/chains").Chain | undefined = undefined, accountOverride extends `0x${string}` | import("viem").Account | undefined = undefined>(args: import("viem").PrepareTransactionRequestParameters<import("viem/chains").Chain | undefined, import("viem").Account | undefined, chainOverride_1, accountOverride, request>) => Promise<import("viem").UnionRequiredBy<Extract<import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<import("viem/chains").Chain | undefined, chainOverride_1>, "transactionRequest", import("viem").TransactionRequest>, "from"> & (import("viem").DeriveChain<import("viem/chains").Chain | undefined, chainOverride_1> extends infer T_15 ? T_15 extends import("viem").DeriveChain<import("viem/chains").Chain | undefined, chainOverride_1> ? T_15 extends import("viem/chains").Chain ? {
chain: T_15;
} : {
chain?: undefined;
} : never : never) & (import("viem").DeriveAccount<import("viem").Account | undefined, accountOverride> extends infer T_16 ? T_16 extends import("viem").DeriveAccount<import("viem").Account | undefined, accountOverride> ? T_16 extends import("viem").Account ? {
account: T_16;
from: `0x${string}`;
} : {
account?: undefined;
from?: undefined;
} : never : never), import("viem").IsNever<((request["type"] extends string | undefined ? request["type"] : import("viem").GetTransactionType<request, (request extends {
accessList?: undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
} & import("viem").FeeValuesLegacy ? "legacy" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} & (import("viem").OneOf<{
maxFeePerGas: bigint;
} | {
maxPriorityFeePerGas: bigint;
}, import("viem").FeeValuesEIP1559> & {
accessList?: import("viem").AccessList | undefined;
}) ? "eip1559" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
} & {
accessList: import("viem").AccessList | undefined;
} ? "eip2930" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}) & (import("viem").ExactPartial<import("viem").FeeValuesEIP4844> & import("viem").OneOf<{
blobs: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
} | {
blobVersionedHashes: readonly `0x${string}`[] | undefined;
} | {
sidecars: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}, import("viem").TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem").SignedAuthorizationList;
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> extends "legacy" ? unknown : import("viem").GetTransactionType<request, (request extends {
accessList?: undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
} & import("viem").FeeValuesLegacy ? "legacy" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} & (import("viem").OneOf<{
maxFeePerGas: bigint;
} | {
maxPriorityFeePerGas: bigint;
}, import("viem").FeeValuesEIP1559> & {
accessList?: import("viem").AccessList | undefined;
}) ? "eip1559" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
} & {
accessList: import("viem").AccessList | undefined;
} ? "eip2930" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}) & (import("viem").ExactPartial<import("viem").FeeValuesEIP4844> & import("viem").OneOf<{
blobs: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
} | {
blobVersionedHashes: readonly `0x${string}`[] | undefined;
} | {
sidecars: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}, import("viem").TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem").SignedAuthorizationList;
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) extends infer T_17 ? T_17 extends (request["type"] extends string | undefined ? request["type"] : import("viem").GetTransactionType<request, (request extends {
accessList?: undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
} & import("viem").FeeValuesLegacy ? "legacy" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} & (import("viem").OneOf<{
maxFeePerGas: bigint;
} | {
maxPriorityFeePerGas: bigint;
}, import("viem").FeeValuesEIP1559> & {
accessList?: import("viem").AccessList | undefined;
}) ? "eip1559" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
} & {
accessList: import("viem").AccessList | undefined;
} ? "eip2930" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}) & (import("viem").ExactPartial<import("viem").FeeValuesEIP4844> & import("viem").OneOf<{
blobs: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
} | {
blobVersionedHashes: readonly `0x${string}`[] | undefined;
} | {
sidecars: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}, import("viem").TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem").SignedAuthorizationList;
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> extends "legacy" ? unknown : import("viem").GetTransactionType<request, (request extends {
accessList?: undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
} & import("viem").FeeValuesLegacy ? "legacy" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} & (import("viem").OneOf<{
maxFeePerGas: bigint;
} | {
maxPriorityFeePerGas: bigint;
}, import("viem").FeeValuesEIP1559> & {
accessList?: import("viem").AccessList | undefined;
}) ? "eip1559" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
} & {
accessList: import("viem").AccessList | undefined;
} ? "eip2930" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}) & (import("viem").ExactPartial<import("viem").FeeValuesEIP4844> & import("viem").OneOf<{
blobs: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
} | {
blobVersionedHashes: readonly `0x${string}`[] | undefined;
} | {
sidecars: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}, import("viem").TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem").SignedAuthorizationList;
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_17 extends "legacy" ? import("viem").TransactionRequestLegacy : never : never : never) | ((request["type"] extends string | undefined ? request["type"] : import("viem").GetTransactionType<request, (request extends {
accessList?: undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
} & import("viem").FeeValuesLegacy ? "legacy" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} & (import("viem").OneOf<{
maxFeePerGas: bigint;
} | {
maxPriorityFeePerGas: bigint;
}, import("viem").FeeValuesEIP1559> & {
accessList?: import("viem").AccessList | undefined;
}) ? "eip1559" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
} & {
accessList: import("viem").AccessList | undefined;
} ? "eip2930" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}) & (import("viem").ExactPartial<import("viem").FeeValuesEIP4844> & import("viem").OneOf<{
blobs: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
} | {
blobVersionedHashes: readonly `0x${string}`[] | undefined;
} | {
sidecars: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}, import("viem").TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem").SignedAuthorizationList;
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> extends "legacy" ? unknown : import("viem").GetTransactionType<request, (request extends {
accessList?: undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
} & import("viem").FeeValuesLegacy ? "legacy" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} & (import("viem").OneOf<{
maxFeePerGas: bigint;
} | {
maxPriorityFeePerGas: bigint;
}, import("viem").FeeValuesEIP1559> & {
accessList?: import("viem").AccessList | undefined;
}) ? "eip1559" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
} & {
accessList: import("viem").AccessList | undefined;
} ? "eip2930" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}) & (import("viem").ExactPartial<import("viem").FeeValuesEIP4844> & import("viem").OneOf<{
blobs: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
} | {
blobVersionedHashes: readonly `0x${string}`[] | undefined;
} | {
sidecars: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}, import("viem").TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem").SignedAuthorizationList;
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) extends infer T_18 ? T_18 extends (request["type"] extends string | undefined ? request["type"] : import("viem").GetTransactionType<request, (request extends {
accessList?: undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
} & import("viem").FeeValuesLegacy ? "legacy" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} & (import("viem").OneOf<{
maxFeePerGas: bigint;
} | {
maxPriorityFeePerGas: bigint;
}, import("viem").FeeValuesEIP1559> & {
accessList?: import("viem").AccessList | undefined;
}) ? "eip1559" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
} & {
accessList: import("viem").AccessList | undefined;
} ? "eip2930" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}) & (import("viem").ExactPartial<import("viem").FeeValuesEIP4844> & import("viem").OneOf<{
blobs: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
} | {
blobVersionedHashes: readonly `0x${string}`[] | undefined;
} | {
sidecars: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}, import("viem").TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem").SignedAuthorizationList;
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> extends "legacy" ? unknown : import("viem").GetTransactionType<request, (request extends {
accessList?: undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
} & import("viem").FeeValuesLegacy ? "legacy" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} & (import("viem").OneOf<{
maxFeePerGas: bigint;
} | {
maxPriorityFeePerGas: bigint;
}, import("viem").FeeValuesEIP1559> & {
accessList?: import("viem").AccessList | undefined;
}) ? "eip1559" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
} & {
accessList: import("viem").AccessList | undefined;
} ? "eip2930" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}) & (import("viem").ExactPartial<import("viem").FeeValuesEIP4844> & import("viem").OneOf<{
blobs: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
} | {
blobVersionedHashes: readonly `0x${string}`[] | undefined;
} | {
sidecars: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}, import("viem").TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem").SignedAuthorizationList;
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_18 extends "eip1559" ? import("viem").TransactionRequestEIP1559 : never : never : never) | ((request["type"] extends string | undefined ? request["type"] : import("viem").GetTransactionType<request, (request extends {
accessList?: undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
} & import("viem").FeeValuesLegacy ? "legacy" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} & (import("viem").OneOf<{
maxFeePerGas: bigint;
} | {
maxPriorityFeePerGas: bigint;
}, import("viem").FeeValuesEIP1559> & {
accessList?: import("viem").AccessList | undefined;
}) ? "eip1559" : never) | (request extends {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
} & {
accessList: import("viem").AccessList | undefined;
} ? "eip2930" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: undefined;
blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
maxFeePerBlobGas?: bigint | undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}) & (import("viem").ExactPartial<import("viem").FeeValuesEIP4844> & import("viem").OneOf<{
blobs: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
} | {
blobVersionedHashes: readonly `0x${string}`[] | undefined;
} | {
sidecars: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
}, import("viem").TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
} | {
accessList?: import("viem").AccessList | undefined;
authorizationList?: import("viem").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem").SignedAuthorizationList;
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> extends "legacy" ? unknown : import("viem").GetTransactionType<request, (request extends {
accessList?: undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: bigint | undefined;
sidecars?