Interface: EvmTransactionInput
moralis-monorepo / @moralisweb3/common-evm-utils / EvmTransactionInput
Interface: EvmTransactionInput
@moralisweb3/common-evm-utils.EvmTransactionInput
This can be any object with valid transaction data.
Example
const transactionInput = {
cumulativeGasUsed: "1340925",
gasPrice: "20000000000",
gasUsed: "1340925",
index: "25",
contractAddress: "0x1d6a4cf64b52f6c73f201839aded7379ce58059c",
receiptRoot: "string",
receiptStatus: "1",
chain: "1",
data: "0x000000000000000000000000000000000000000000000000000000000000002",
from: "0xd4a3BebD824189481FC45363602b83C9c7e9cbDf",
hash: "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e",
nonce: "326595425",
value: "650000000000000000",
blockHash: "0x0372c302e3c52e8f2e15d155e2c545e6d802e479236564af052759253b20fd86",
blockNumber: "12526958",
blockTimestamp: new Date("2021-04-02T10:07:54.000Z"),
gas: "6721975",
to: "0xa71db868318f0a0bae9411347cd4a6fa23d8d4ef",
transferIndex: "0",
signature: {
v: 28,
r: "0xda4429a9e8e6b54cb101b2df002039f2879ab4ca0e8fae64134942cb81f3e581",
s: "0x3b90a37dc078a82dfc418695b1d4473661aa4d24dd874ac68678894ff44a6b27",
}
}
Hierarchy
EvmTransactionInput
Table of contents
Properties
- blockHash
- blockNumber
- blockTimestamp
- chain
- contractAddress
- cumulativeGasUsed
- data
- from
- gas
- gasPrice
- gasUsed
- hash
- index
- internalTransactions
- logs
- nonce
- receiptRoot
- receiptStatus
- signature
- to
- value
Properties
blockHash
• blockHash: string
blockNumber
• blockNumber: BigNumberInput
blockTimestamp
• blockTimestamp: DateInput
chain
• chain: EvmChainish
contractAddress
• Optional contractAddress: null | EvmAddressInput
cumulativeGasUsed
• cumulativeGasUsed: BigNumberInput
data
• Optional data: null | string
from
• from: EvmAddressInput
gas
• Optional gas: null | BigNumberInput
gasPrice
• gasPrice: BigNumberInput
gasUsed
• gasUsed: BigNumberInput
hash
• hash: string
index
• index: string | number
internalTransactions
• Optional internalTransactions: EvmInternalTransactionish[]
logs
• Optional logs: EvmTransactionLogish[]
nonce
• Optional nonce: null | BigNumberInput
receiptRoot
• Optional receiptRoot: null | string
receiptStatus
• Optional receiptStatus: null | string | number
signature
• Optional signature: EvmSignatureish
to
• Optional to: null | EvmAddressInput
value
• Optional value: null | EvmNativeInput