Skip to main content
Version: 1.0.0

Type Alias: ChainTransaction

ChainTransaction = { blockNumber: number; error?: unknown; from: string; hash: string; logs: readonly ChainLog[]; timestamp: number; }

Defined in: types.ts:190

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:196

Block number containing this transaction.


error?

optional error: unknown

Defined in: types.ts:202

Optional error if transaction failed.


from

from: string

Defined in: types.ts:200

Sender address.


hash

hash: string

Defined in: types.ts:192

Transaction hash.


logs

logs: readonly ChainLog[]

Defined in: types.ts:194

Logs emitted by this transaction.


timestamp

timestamp: number

Defined in: types.ts:198

Unix timestamp of the block.