@reservoir0x/relay-sdk
Version:
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
868 lines • 452 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;
};
export declare class RelayClient {
version: string;
uiVersion?: string;
baseApiUrl: string;
source?: string;
logLevel: LogLevel;
pollingInterval?: 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>;
getChainId: () => Promise<number>;
getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
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_14 ? T_14 extends import("viem").DeriveChain<import("viem/chains").Chain | undefined, chainOverride_1> ? T_14 extends import("viem/chains").Chain ? {
chain: T_14;
} : {
chain?: undefined;
} : never : never) & (import("viem").DeriveAccount<import("viem").Account | undefined, accountOverride> extends infer T_15 ? T_15 extends import("viem").DeriveAccount<import("viem").Account | undefined, accountOverride> ? T_15 extends import("viem").Account ? {
account: T_15;
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/experimental").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/experimental").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem/experimental").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/experimental").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/experimental").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem/experimental").SignedAuthorizationList;
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) extends infer T_16 ? T_16 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/experimental").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/experimental").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem/experimental").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/experimental").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/experimental").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem/experimental").SignedAuthorizationList;
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_16 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/experimental").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/experimental").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem/experimental").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/experimental").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/experimental").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem/experimental").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/experimental").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/experimental").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem/experimental").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/experimental").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/experimental").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem/experimental").SignedAuthorizationList;
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_17 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/experimental").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/experimental").SignedAuthorizationList | undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
gasPrice?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint | undefined;
maxPriorityFeePerGas?: bigint | undefined;
sidecars?: undefined;
}) & {
authorizationList: import("viem/experimental").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 | u