Skip to main content
Version: 1.14.0

Type Alias: ChainTransaction

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

Defined in: types.ts:145

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

Block number containing this transaction.


error?​

optional error?: unknown

Defined in: types.ts:157

Optional error if transaction failed.


from​

from: string

Defined in: types.ts:155

Sender address.


hash​

hash: string

Defined in: types.ts:147

Transaction hash.


logs​

logs: readonly ChainLog[]

Defined in: types.ts:149

Logs emitted by this transaction.


timestamp​

timestamp: number

Defined in: types.ts:153

Unix timestamp of the block.