UNPKG

wagmi

Version:

React Hooks for Ethereum

14 lines 1.47 kB
import type { Config, ResolvedRegister, SendTransactionErrorType } from '@wagmi/core'; import type { Compute, ConfigParameter } from '@wagmi/core/internal'; import { type SendTransactionData, type SendTransactionMutate, type SendTransactionMutateAsync, type SendTransactionOptions, type SendTransactionVariables } from '@wagmi/core/query'; import type { UseMutationReturnType } from '../utils/query.js'; export type UseSendTransactionParameters<config extends Config = Config, context = unknown> = Compute<ConfigParameter<config> & SendTransactionOptions<config, context>>; export type UseSendTransactionReturnType<config extends Config = Config, context = unknown> = Compute<UseMutationReturnType<SendTransactionData, SendTransactionErrorType, SendTransactionVariables<config, config['chains'][number]['id']>, context, SendTransactionMutate<config, context>, SendTransactionMutateAsync<config, context>> & { /** @deprecated use `mutate` instead */ sendTransaction: SendTransactionMutate<config, context>; /** @deprecated use `mutateAsync` instead */ sendTransactionAsync: SendTransactionMutateAsync<config, context>; }>; /** https://wagmi.sh/react/api/hooks/useSendTransaction */ export declare function useSendTransaction<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: UseSendTransactionParameters<config, context>): UseSendTransactionReturnType<config, context>; //# sourceMappingURL=useSendTransaction.d.ts.map