trezor / blockbook

:blue_book: Trezor address/account balance backend
https://trezor.io
GNU Affero General Public License v3.0
653 stars 647 forks source link

ETH getBlock blockchain_link/websocket_error_message Error #1102

Closed ramezanzade1 closed 3 months ago

ramezanzade1 commented 3 months ago

When i call the below code i get this error:

error:{ code: "blockchain_link/websocket_error_message", message: "Not supported" }

code: const link = new BlockchainLink({ name: 'MyBlockchainLink', worker: Blockbook, server: ['https://eth1.trezor.io/', 'https://eth2.trezor.io/'], keepAlive: true, debug: true, });

try {
  const info = await link.getInfo();
  console.log(info);
  const blockHash = await link.getBlockHash(20103106);
  console.log(blockHash);
  const block = await link.getBlock(20103106);
  console.log(block);
} catch (error) {
  console.error('Error fetching blockchain info:', error);
}
martinboehm commented 3 months ago

Hi. The getBlock call is not and will not be supported on our ETH servers.