getTxAt

fun getTxAt(height: Int, idx: Int, blockMerkleRoot: Hash256? = null, timeoutInMs: Int = requestTimeout): iTransaction

Get the transaction at the specified block height and offset. Requires multiple server calls.

Return

transaction

Parameters

height

The height of the block that contains the desired transaction

idx

The 0-based index of the transaction in the block

blockMerkleRoot

(optional) If provided, this API will request the merkle proof of this transaction and throw ElectrumIncorrectReply if the proof is incorrect

timeoutInMs

(optional) Override the default request timeout