You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-9Lines changed: 29 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
3
3
## Overview
4
4
5
-
The Blockchain Adapter API enables interacting with iExec smart contracts plus doing other Ethereum things.
6
-
The Blockchain Adapter API accepts incoming requests asking for submitting transactions to iExec smart contracts.
5
+
The Blockchain Adapter API enables interacting with iExec PoCo smart contracts.
6
+
The Blockchain Adapter API accepts incoming requests asking for submitting transactions to iExec PoCo smart contracts.
7
7
Incoming requests are locally stored in a database.
8
8
Transactions related to these requests are being asynchronously sent to a blockchain node.
9
9
At any time, the caller can retrieve the processing status for his request.
@@ -26,13 +26,13 @@ To run properly, the iExec Blockchain Adapter API requires:
26
26
|`IEXEC_BLOCKCHAIN_ADAPTER_API_PASSWORD`| Login password of the server. | String |`whatever`|
27
27
|`IEXEC_BLOCKCHAIN_ADAPTER_API_MONGO_HOST`| Mongo server host. Cannot be set with URI. | String |`localhost`|
28
28
|`IEXEC_BLOCKCHAIN_ADAPTER_API_MONGO_PORT`| Mongo server port. Cannot be set with URI. | Positive integer |`13012`|
29
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_CHAIN_ID`| Chain ID of the blockchain network to connect. | Positive integer |`134`|
30
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_IS_SIDECHAIN`| Define whether iExec on-chain protocol is built on top of token (`false`) or native currency (`true`). | Boolean |`true`|
31
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_NODE_ADDRESS`| URL to connect to the blockchain network. | URL |`https://bellecour.iex.ec`|
32
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_BLOCK_TIME`| Duration between consecutive blocks on the blockchain network, in seconds. | Positive integer |`5`|
33
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_HUB_ADDRESS`| Proxy contract address to interact with the iExec on-chain protocol. | Ethereum Address |`0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f`|
34
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_GAS_PRICE_MULTIPLIER`| Transactions will be sent with `networkGasPrice * gasPriceMultiplier`. | Float |`1.0`|
35
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_GAS_PRICE_CAP`| In Wei, will be used for transactions if `networkGasPrice * gasPriceMultiplier > gasPriceCap`. | Positive integer |`22000000000`|
29
+
|`IEXEC_CHAIN_ID`| Chain ID of the blockchain network to connect. | Positive integer |`134`|
30
+
|`IEXEC_IS_SIDECHAIN`| Define whether iExec on-chain protocol is built on top of token (`false`) or native currency (`true`). | Boolean |`true`|
31
+
|`IEXEC_BLOCKCHAIN_NODE_ADDRESS`| URL to connect to the blockchain network. | URL |`https://bellecour.iex.ec`|
32
+
|`IEXEC_BLOCK_TIME`| Duration between consecutive blocks on the blockchain network, in seconds. | Positive integer |`5`|
33
+
|`IEXEC_HUB_ADDRESS`| Proxy contract address to interact with the iExec on-chain protocol. | Ethereum Address |`0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f`|
34
+
|`IEXEC_GAS_PRICE_MULTIPLIER`| Transactions will be sent with `networkGasPrice * gasPriceMultiplier`. | Float |`1.0`|
35
+
|`IEXEC_GAS_PRICE_CAP`| In Wei, will be used for transactions if `networkGasPrice * gasPriceMultiplier > gasPriceCap`. | Positive integer |`22000000000`|
36
36
|`IEXEC_BLOCKCHAIN_ADAPTER_API_MAX_ALLOWED_TX_PER_BLOCK`| Max number of transactions per block, between `1` and `4`. | Positive integer |`1`|
37
37
|`IEXEC_BLOCKCHAIN_ADAPTER_API_WALLET_PATH`| Path to the wallet of the server. | String |`src/main/resources/wallet.json`|
38
38
|`IEXEC_BLOCKCHAIN_ADAPTER_API_WALLET_PASSWORD`| Password to unlock the wallet of the server. | String |`whatever`|
@@ -44,6 +44,26 @@ This endpoint allows to define health checks in an orchestrator or
44
44
a [compose file](https://github.com/compose-spec/compose-spec/blob/master/spec.md#healthcheck).
45
45
No default strategy has been implemented in the [Dockerfile](Dockerfile) at the moment.
46
46
47
+
## Metrics
48
+
49
+
The Blockchain Adapter API is a Spring Boot application configured to be able to expose metrics through
50
+
the [Prometheus actuator](https://docs.spring.io/spring-boot/docs/3.0.13/reference/html/actuator.html#actuator.metrics.export.prometheus).
51
+
Enabling the actuator allows to expose metrics with the [OpenMetrics](https://openmetrics.io/) format
52
+
on the `/actuator/prometheus` endpoint.
53
+
54
+
By default, the following kind of metrics are exposed through autoconfiguration:
|`iexec.chain-adapter.block.latest`|| Last block number seen in the websocket blockchain listener |
64
+
|`iexec.chain-adapter.tx-count`|`block=latest`| Number of transactions sent with the configured wallet and mined in latest block |
65
+
|`iexec.chain-adapter.tx-count`|`block=pending`| Number of transactions sent with the configured wallet, including both mined and pending transactions |
Copy file name to clipboardExpand all lines: iexec-blockchain-adapter-api-library/src/main/java/com/iexec/blockchain/api/BlockchainAdapterApiClient.java
+1-9Lines changed: 1 addition & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2022-2023 IEXEC BLOCKCHAIN TECH
2
+
* Copyright 2022-2025 IEXEC BLOCKCHAIN TECH
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
0 commit comments