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:
| AccessListish
| null;

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:
| Authorization[]
| null;

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: BlobLike[] | null;

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: string[] | null;

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:
| BigNumberish
| null;

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: string | null;

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

The data.


optional from: A | null;

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

The sender.


optional gasLimit:
| BigNumberish
| null;

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:
| BigNumberish
| null;

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: string | null;

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

The transaction hash.


optional kzg:
| KzgLibraryLike
| null;

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:
| BigNumberish
| null;

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:
| BigNumberish
| null;

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:
| BigNumberish
| null;

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: number | null;

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

The nonce.


optional signature:
| SignatureLike
| null;

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: A | null;

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: number | null;

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

The type.


optional value:
| BigNumberish
| null;

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.