Type Alias: ChainTransaction
ChainTransaction = {
blockNumber:number;error?:unknown;from:string;hash:string;logs: readonlyChainLog[];timestamp:number; }
Defined in: types.ts:146
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:152
Block number containing this transaction.
error?
optionalerror?:unknown
Defined in: types.ts:158
Optional error if transaction failed.
from
from:
string
Defined in: types.ts:156
Sender address.
hash
hash:
string
Defined in: types.ts:148
Transaction hash.
logs
logs: readonly
ChainLog[]
Defined in: types.ts:150
Logs emitted by this transaction.
timestamp
timestamp:
number
Defined in: types.ts:154
Unix timestamp of the block.