Skip to content

TransactionLike

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:10

A TransactionLike is an object which is appropriate as a loose input for many operations which will populate missing properties of a transaction.

Type ParameterDefault type
Astring
optional accessList:
| null
| AccessListish;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:66

The access list for berlin and london transactions.


optional authorizationList:
| null
| Authorization[];

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:90

The [[link-eip-7702]] authorizations (if any).


optional blobs: null | BlobLike[];

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:78

The blobs (if any) attached to this transaction (see [[link-eip-4844]]).


optional blobVersionedHashes: null | string[];

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:74

The versioned hashes (see [[link-eip-4844]]).


optional chainId:
| null
| BigNumberish;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:54

The chain ID the transaction is valid on.


optional data: null | string;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:46

The data.


optional from: null | A;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:22

The sender.


optional gasLimit:
| null
| BigNumberish;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:30

The maximum amount of gas that can be used.


optional gasPrice:
| null
| BigNumberish;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:34

The gas price for legacy and berlin transactions.


optional hash: null | string;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:58

The transaction hash.


optional kzg:
| null
| KzgLibraryLike;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:86

An external library for computing the KZG commitments and proofs necessary for EIP-4844 transactions (see [[link-eip-4844]]).

This is generally null, unless you are creating BLOb transactions.


optional maxFeePerBlobGas:
| null
| BigNumberish;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:70

The maximum fee per blob gas (see [[link-eip-4844]]).


optional maxFeePerGas:
| null
| BigNumberish;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:42

The maximum total fee per gas for london transactions.


optional maxPriorityFeePerGas:
| null
| BigNumberish;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:38

The maximum priority fee per gas for london transactions.


optional nonce: null | number;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:26

The nonce.


optional signature:
| null
| SignatureLike;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:62

The signature provided by the sender.


optional to: null | A;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:18

The recipient address or null for an init transaction.


optional type: null | number;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:14

The type.


optional value:
| null
| BigNumberish;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/transaction/transaction.d.ts:50

The value (in wei) to send.