Type Alias: ChainTransaction
ChainTransaction = {
blockNumber:number;error?:unknown;from:string;hash:string;logs: readonlyChainLog[];timestamp:number; }
Defined in: types.ts:191
Generic transaction structure compatible across chain families.
Example
TypeScript
const tx: ChainTransaction = {
hash: '0xabc123...',
logs: [],
blockNumber: 12345678,
timestamp: 1704067200,
from: '0x1234...abcd',
}
Properties
blockNumber
blockNumber:
number
Defined in: types.ts:197
Block number containing this transaction.
error?
optionalerror:unknown
Defined in: types.ts:203
Optional error if transaction failed.
from
from:
string
Defined in: types.ts:201
Sender address.
hash
hash:
string
Defined in: types.ts:193
Transaction hash.
logs
logs: readonly
ChainLog[]
Defined in: types.ts:195
Logs emitted by this transaction.
timestamp
timestamp:
number
Defined in: types.ts:199
Unix timestamp of the block.