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 Parameters
Section titled “Type Parameters”Type Parameter | Default type |
---|---|
A | string |
Properties
Section titled “Properties”accessList?
Section titled “accessList?”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.
authorizationList?
Section titled “authorizationList?”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).
blobs?
Section titled “blobs?”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]]).
blobVersionedHashes?
Section titled “blobVersionedHashes?”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]]).
chainId?
Section titled “chainId?”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.
gasLimit?
Section titled “gasLimit?”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.
gasPrice?
Section titled “gasPrice?”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.
maxFeePerBlobGas?
Section titled “maxFeePerBlobGas?”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]]).
maxFeePerGas?
Section titled “maxFeePerGas?”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.
maxPriorityFeePerGas?
Section titled “maxPriorityFeePerGas?”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.
nonce?
Section titled “nonce?”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.
signature?
Section titled “signature?”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.
value?
Section titled “value?”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.