Skip to main content
Version: 0.96.0

Type Alias: ChainTransaction

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

Defined in: types.ts:186

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

Block number containing this transaction.


error?

optional error: unknown

Defined in: types.ts:198

Optional error if transaction failed.


from

from: string

Defined in: types.ts:196

Sender address.


hash

hash: string

Defined in: types.ts:188

Transaction hash.


logs

logs: readonly Log_[]

Defined in: types.ts:190

Logs emitted by this transaction.


timestamp

timestamp: number

Defined in: types.ts:194

Unix timestamp of the block.