Commit Graph

385 Commits

Author SHA1 Message Date
pragmaxim
e2b494f2a5 websocket unmarshal test 2026-02-17 19:48:05 +01:00
pragmaxim
61523804a7 return websocket error to client instead of logging it 2026-02-17 19:08:42 +01:00
pragmaxim
174640273d new websocket prometheus metrics 2026-02-17 12:05:03 +01:00
pragmaxim
efbf7f559f inline documentation in websocket.go 2026-02-17 10:35:00 +01:00
pragmaxim
f9fc15eddc test(websocket): cover newBlockTxs edge cases 2026-02-17 09:33:34 +01:00
pragmaxim
49f5efc0c8 fix(websocket): keep newBlockTxs notifications on receipt errors 2026-02-17 08:48:30 +01:00
pragmaxim
99d41c7feb fix(websocket): avoid panic on missing ethereum specific data 2026-02-17 08:48:06 +01:00
pragmaxim
bd75be0987 fix(websocket): set confirmed metadata for newBlockTxs 2026-02-17 08:47:40 +01:00
pragmaxim
e94564c3ee Merge branch 'master' into pub-new-block-txs 2026-02-17 08:11:32 +01:00
etimofeeva
a20c7611a2 feat: add CSP headers and fix XSS vulnerabilities in templates 2026-02-10 13:29:44 +01:00
Martin Boehm
4ce39bcdb0 Escape html in name and symbol shown in explorer 2025-10-20 17:25:36 +02:00
kaladinlight
7c18189779 copilot feedback 2025-10-06 10:20:02 -06:00
kaladinlight
32232953cd publish new block transactions by address 2025-09-30 09:38:15 -06:00
etimofeeva
0e92dd124b feat: add alternative RPC provider support for sendTransaction 2025-08-27 12:20:07 +02:00
highcloudwind
ca17fc5a95 chore: fix some function names in comment
Signed-off-by: highcloudwind <highcloud@aliyun.com>
2025-06-24 12:01:58 +02:00
Jiří Musil
ae0172dddf Add longTermFeeRate websocket endpoint (#1262)
* feat: add longTermFeeRate websocket endpoint

* chore: regenerate blockbook-api.ts with longTermFeeRate
2025-06-09 14:09:15 +02:00
grdddj
d328ed9e00 docs: document public API structs 2025-05-23 00:15:15 +02:00
Martin Boehm
e8cda83163 Support priority fees for mined transactions 2025-04-22 12:19:04 +02:00
Martin Boehm
95e965d5df Return 503 ServiceUnavailable from public interface if not synced 2025-02-21 19:32:23 +01:00
kevin
7d4872e830 Add Base Support (#1150)
* add base support

* backend config

* add base archive blockchain factory

* add dbProtoAddrContracts flag and default to legacy encoding. fix tests

* default cache behavior for dbMaxAddrContracts default value

* update to defer func to ensure addressContracts is reset and handle possible error

* base config default to use dbProtoAddrContracts

* add network config

* update op-geth and op-node versions

* remove coingecko url

* update coingecko platform identifier

* token type -> token standard

* reduce allocations as pack/unpack addr contracts is primary bottleneck for l2 chains

* archive snapshot no longer supported, use fullnode snapshot as best effort

* remove proto encoded addr contracts as bench marks indicate there is no performance gain as initially suspected

* revert address contract cache changes
2025-02-20 22:55:15 +01:00
Martin Boehm
cddbf7228a chore(blockbook): rename type to standard 2025-02-06 22:47:11 +01:00
Albina Nikiforova
9feda1a857 chore(blockbook): rename type to standard 2025-02-06 22:47:11 +01:00
Martin Boehm
a2ba8c4b09 Add Ethereum type EIP1559 fee estimate from infura 2025-02-06 22:47:11 +01:00
Martin Boehm
a3b0a05b14 Add Ethereum type EIP1559 fee estimate 2025-02-06 22:47:11 +01:00
Jiří Musil
a4f1730364 Show raw tx hex in UI (#1162)
* Fix Network configuration parameter

* feat: allow for showing raw transaction hex for ETH transactions

* chore: remove comments from JS code to avoid parsing issues in tests

* temp: comment out failing tx template tests

* chore: trim text from copyable before writing it to clipboard

* chore: improve the design of Transaction hex

* chore: add wrap to element showing raw hex data

* fixup! chore: add wrap to element showing raw hex data

* chore: remove redundant style, make HTML prettier

* Revert "temp: comment out failing tx template tests"

This reverts commit f104ebbf5111583b46996d7527a26c08cd9e29b6.

* chore: put rawTx javascript functionality into main.js

* chore: modify the expected HTML for changed tx template

* feat: support the raw transaction hex also for BTC-like coins

* chore: add on-hover effect for active button - make the background white

* Minify javascript and styles

---------

Co-authored-by: Martin Boehm <martin.boehm@1mbsoftware.net>
2024-12-09 11:30:02 +01:00
Martin Boehm
a55c69a8a1 EthereumType: admin interface to read and update contract info 2024-11-27 14:38:27 +01:00
Martin Boehm
76664cdbf3 Refactor ethCall method to rpcCall 2024-10-10 00:58:19 +02:00
Martin Boehm
3cf7e6abe8 Add ethCall websocket request 2024-09-24 15:24:26 +02:00
Martin Boehm
a0960c8e17 Add network parameter to getInfo ws request 2024-08-06 10:50:01 +02:00
Martin Boehm
c1f2e62c45 Show Nonce for ethereum type transactions in explorer 2024-07-30 14:46:38 +02:00
Martin Boehm
61bdb8a346 Fix internal admin styles 2023-12-08 18:30:21 +01:00
Martin Boehm
f4d06ab08d Load bootstrap css and js from local server 2023-12-03 23:00:03 +01:00
Martin Boehm
3c29b07c7c Disconnect ws connections exceeding limit of requests 2023-11-29 09:49:59 +01:00
Martin Boehm
6992be6f58 Fix linting errors 2023-11-21 23:37:42 +01:00
Martin Boehm
856c85e1e7 Add public interface block filter tests 2023-11-08 10:21:19 +01:00
Martin Boehm
8ef09d124e Fix tests 2023-11-08 10:21:18 +01:00
Jiří Musil
7d0c424ad8 Ignore Ordinals in Golomb filters (#967) 2023-11-08 10:21:18 +01:00
Martin Boehm
a1a17b4331 Add getBlockFiltersBatch websocket method 2023-11-08 10:21:18 +01:00
Martin Boehm
4b6f19632d Enable websocket per message compression 2023-11-08 10:21:18 +01:00
Martin Boehm
96dbc8c9dc Add configuration for block golomb filters 2023-11-08 10:21:18 +01:00
grdddj
911454f171 Implement Golomb block filters for each block
Contains a websocket method `getBlockFilter` and REST endpoint `block-filters`
2023-11-08 10:21:18 +01:00
Martin Boehm
4c41b414c4 Add getMempoolFilters websocket method 2023-05-11 15:36:03 +02:00
Martin Boehm
d83d501272 Adopt sats standard to show amounts (for Bitcoin) #924 2023-05-11 15:33:48 +02:00
Martin Boehm
a77f615e28 Return addrTxCount for get xpub endpoint 2023-05-09 00:21:47 +02:00
Martin Boehm
c4fff10e5f Disable secondary currency if fiat rates disabled 2023-05-02 23:26:03 +02:00
Martin Boehm
85112a20c7 Enable coingecko pro API endpoint, count coingecko requests in metrics 2023-04-27 17:41:32 +02:00
Martin Boehm
210ec75a3d Refactor fiat rates usage 2023-04-26 21:48:31 +02:00
Martin Boehm
a4f7f5b965 Get hourly and five minutes fiat rates 2023-04-25 09:13:43 +02:00
Martin Boehm
d856618607 Refactor fiat rates handler 2023-04-24 23:58:08 +02:00
Martin Boehm
fabad15c10 Refetch failed ethereum internal data 2023-04-13 11:28:52 +02:00