<p>Quickly surfing through the list of electrum methods, looks like not, and I will have to use <code>getblock</code> from bitcoind json-rpc.
Is there a better way?</p>

CC BY-SA 4.0
2020-07-08T17:51:11.270Z
Looping for all: [`blockchain.transaction.id_from_pos`](https://electrumx.readthedocs.io/en/latest/protocol-methods.html#blockchain-transaction-id-from-pos)?
MCCCS
CC BY-SA 4.0
2020-07-11T12:42:30.360Z
thanks @MCCCS that looks like what I need! is there a way to get how many transactions there are in a specific block (without iterating to some ridiculous value like 99999)?
Igor Korsakov
CC BY-SA 4.0
2020-07-11T12:49:46.493Z
No I don't think that's possible, you need to iterate (though you can check like 1,2,4,8,...512,1024) then binary bisect
MCCCS
<bitcoin-core><bitcoind><electrum>
Is there a way to fetch all transactions in a block via electrum protocol?
Igor Korsakov
# Is there a way to fetch all transactions in a block via electrum protocol?

(Asked by: username_0 on 2020-07-08)

Quickly surfing through the list of electrum methods, looks like not, and I will have to use `getblock` from bitcoind json-rpc.
Is there a better way?

**Tags:** bitcoin-core, bitcoind, electrum

> **Comments:**
> **username_1**: Looping for all: [`blockchain.transaction.id_from_pos`](https://electrumx.readthedocs.io/en/latest/protocol-methods.html#blockchain-transaction-id-from-pos)?  
> **username_0**: thanks @username_1 that looks like what I need! is there a way to get how many transactions there are in a specific block (without iterating to some ridiculous value like 99999)?  
> **username_1**: No I don't think that's possible, you need to iterate (though you can check like 1,2,4,8,...512,1024) then binary bisect  

---

## 0 answers

