Transaction
class Transaction<> extends TransactionContext {}
function constructor(
Encode the function data for this transaction
function encode(): string;
Estimate the total gas cost of this transaction (in both ether and wei)
function estimateGasCost(): Promise<{ ether: string; wei: BigNumber;}>;
Estimate the gas limit of this transaction
function estimateGasLimit(): Promise<BigNumber>;
Send the transaction and wait for it to be mined
function execute(): Promise<TResult>;
function getGaslessOptions(): | undefined | { experimentalChainlessSupport: boolean; openzeppelin: { domainName: string; domainSeparatorVersion: string; domainVersion: string; relayerForwarderAddress?: string; relayerUrl: string; useEOAForwarder: boolean; }; } | { biconomy: { apiId: string; apiKey: string; deadlineSeconds: number; }; } | { engine: { domainName: string; domainSeparatorVersion: string; domainVersion: string; relayerForwarderAddress?: string; relayerUrl: string; }; experimentalChainlessSupport: boolean; };
let returnType: | undefined | { experimentalChainlessSupport: boolean; openzeppelin: { domainName: string; domainSeparatorVersion: string; domainVersion: string; relayerForwarderAddress?: string; relayerUrl: string; useEOAForwarder: boolean; }; } | { biconomy: { apiId: string; apiKey: string; deadlineSeconds: number; }; } | { engine: { domainName: string; domainSeparatorVersion: string; domainVersion: string; relayerForwarderAddress?: string; relayerUrl: string; }; experimentalChainlessSupport: boolean; };
function populateTransaction(): Promise<TransactionRequest>;
Send the transaction without waiting for it to be mined.
function send(): Promise<ContractTransaction>;
function setGaslessOptions( options: | undefined | { experimentalChainlessSupport: boolean; openzeppelin: { domainName: string; domainSeparatorVersion: string; domainVersion: string; relayerForwarderAddress?: string; relayerUrl: string; useEOAForwarder: boolean; }; } | { biconomy: { apiId: string; apiKey: string; deadlineSeconds: number; }; } | { engine: { domainName: string; domainSeparatorVersion: string; domainVersion: string; relayerForwarderAddress?: string; relayerUrl: string; }; experimentalChainlessSupport: boolean; },
let options: | undefined | { experimentalChainlessSupport: boolean; openzeppelin: { domainName: string; domainSeparatorVersion: string; domainVersion: string; relayerForwarderAddress?: string; relayerUrl: string; useEOAForwarder: boolean; }; } | { biconomy: { apiId: string; apiKey: string; deadlineSeconds: number; }; } | { engine: { domainName: string; domainSeparatorVersion: string; domainVersion: string; relayerForwarderAddress?: string; relayerUrl: string; }; experimentalChainlessSupport: boolean; };
function setParse(
Get the signed transaction
function sign(): Promise<string>;
Simulate the transaction on-chain without executing
function simulate(): Promise<any>;
function fromContractInfo(
function fromContractWrapper(
TContract, TResult>;
Inherited from
TransactionContext.getArgsfunction getArgs(): Array<any>;
Inherited from
TransactionContext.getGasPriceCalculates the gas price for transactions (adding a 10% tip buffer)
function getGasPrice(): Promise<BigNumber>;
Inherited from
TransactionContext.getOverridesfunction getOverrides(): CallOverrides;
Inherited from
TransactionContext.getSignerAddressGet the address of the transaction signer
function getSignerAddress(): Promise<string>;
Inherited from
TransactionContext.getValuefunction getValue(): BigNumberish | Promise<BigNumberish>;
Inherited from
TransactionContext.setAccessListfunction setAccessList( accessList: undefined | AccessListish,): TransactionContext;
Inherited from
TransactionContext.setArgsfunction setArgs(args: Array<any>): TransactionContext;
Inherited from
TransactionContext.setCcipReadEnabledfunction setCcipReadEnabled( ccipReadEnabled: undefined | boolean,): TransactionContext;
Inherited from
TransactionContext.setCustomDatafunction setCustomData( customData: undefined | Record<string, any>,): TransactionContext;
Inherited from
TransactionContext.setGasLimitfunction setGasLimit( gasLimit: undefined | BigNumberish | Promise<BigNumberish>,): TransactionContext;
Inherited from
TransactionContext.setGasLimitMultipleSet a multiple to multiply the gas limit by
// Set the gas limit multiple to 1.2 (increase by 20%)tx.setGasLimitMultiple(1.2);
function setGasLimitMultiple(factor: number): void;
Inherited from
TransactionContext.setGasPricefunction setGasPrice( gasPrice: undefined | BigNumberish | Promise<BigNumberish>,): TransactionContext;
Inherited from
TransactionContext.setMaxFeePerGasfunction setMaxFeePerGas( maxFeePerGas: undefined | BigNumberish | Promise<BigNumberish>,): TransactionContext;
Inherited from
TransactionContext.setMaxPriorityFeePerGasfunction setMaxPriorityFeePerGas( maxPriorityFeePerGas: | undefined | BigNumberish | Promise<BigNumberish>,): TransactionContext;
Inherited from
TransactionContext.setNoncefunction setNonce( nonce: undefined | BigNumberish | Promise<BigNumberish>,): TransactionContext;
Inherited from
TransactionContext.setOverridesfunction setOverrides(overrides: CallOverrides): TransactionContext;
Inherited from
TransactionContext.setTypefunction setType(type: undefined | number): TransactionContext;
Inherited from
TransactionContext.setValuefunction setValue( value: undefined | BigNumberish | Promise<BigNumberish>,): TransactionContext;
Inherited from
TransactionContext.updateOverridesfunction updateOverrides( overrides: CallOverrides,): TransactionContext;
let getProvider: Provider;
let getSigner: Signer;