Class Transaction<TResult>

Type Parameters

Hierarchy

  • TransactionContext
    • Transaction

Constructors

Properties

args: any[]
contract: Contract
gasMultiple?: number
gaslessOptions?: {
    experimentalChainlessSupport: boolean;
    openzeppelin: { relayerUrl: string; useEOAForwarder: boolean; domainName: string; domainVersion: string; relayerForwarderAddress?: string | undefined; };
} | {
    biconomy: { apiId: string; apiKey: string; deadlineSeconds: number; };
} | {
    engine: { relayerUrl: string; };
}

Type declaration

  • experimentalChainlessSupport: boolean
  • openzeppelin: { relayerUrl: string; useEOAForwarder: boolean; domainName: string; domainVersion: string; relayerForwarderAddress?: string | undefined; }

Type declaration

  • biconomy: { apiId: string; apiKey: string; deadlineSeconds: number; }

Type declaration

  • engine: { relayerUrl: string; }
method: string
overrides: CallOverrides
parse?: ParseTransactionReceipt<TResult>
provider: Provider
signer: Signer
storage: ThirdwebStorage<IpfsUploadBatchOptions>

Accessors

Methods

  • Estimate the total gas cost of this transaction (in both ether and wei)

    Returns Promise<{
        ether: string;
        wei: BigNumber;
    }>

  • Get gas overrides for the transaction

    Returns Promise<{
        gasPrice?: undefined;
        maxFeePerGas?: undefined;
        maxPriorityFeePerGas?: undefined;
    } | {
        gasPrice?: undefined;
        maxFeePerGas: BigNumber;
        maxPriorityFeePerGas: BigNumber;
    } | {
        gasPrice: BigNumber;
        maxFeePerGas?: undefined;
        maxPriorityFeePerGas?: undefined;
    }>

  • Returns undefined | {
        experimentalChainlessSupport: boolean;
        openzeppelin: { relayerUrl: string; useEOAForwarder: boolean; domainName: string; domainVersion: string; relayerForwarderAddress?: string | undefined; };
    } | {
        biconomy: { apiId: string; apiKey: string; deadlineSeconds: number; };
    } | {
        engine: { relayerUrl: string; };
    }

  • Set a multiple to multiply the gas limit by

    Parameters

    • factor: number

    Returns void

    Example

    // Set the gas limit multiple to 1.2 (increase by 20%)
    tx.setGasLimitMultiple(1.2)
  • Parameters

    • options: undefined | {
          experimentalChainlessSupport: boolean;
          openzeppelin: { relayerUrl: string; useEOAForwarder: boolean; domainName: string; domainVersion: string; relayerForwarderAddress?: string | undefined; };
      } | {
          biconomy: { apiId: string; apiKey: string; deadlineSeconds: number; };
      } | {
          engine: { relayerUrl: string; };
      }

    Returns Transaction<TResult>

  • Parameters

    • maxPriorityFeePerGas: undefined | BigNumberish | Promise<BigNumberish>

    Returns TransactionContext

Generated using TypeDoc