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
+24-20Lines changed: 24 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,45 +8,49 @@ 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.
10
10
11
-
The iExec Blockchain Adapter API is available as an OCI image on [Docker Hub](https://hub.docker.com/r/iexechub/iexec-blockchain-adapter-api/tags).
11
+
The iExec Blockchain Adapter API is available as an OCI image
12
+
on [Docker Hub](https://hub.docker.com/r/iexechub/iexec-blockchain-adapter-api/tags).
12
13
13
14
To run properly, the iExec Blockchain Adapter API requires:
15
+
14
16
* A blockchain node. iExec smart contracts must be deployed on the blockchain network.
15
17
* A MongoDB instance to persist its data.
16
18
* An Ethereum wallet to interact with smart contracts on the blockchain network.
17
19
18
20
## Configuration
19
21
20
-
| Environment variable | Description | Type | Default value |
21
-
| --- | --- | --- | --- |
22
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_PORT`| Server HTTP port of the Blockchain Adapter API. | Positive integer |`13010`|
23
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_USERNAME`| Login username of the server. | String |`admin`|
24
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_PASSWORD`| Login password of the server. | String |`whatever`|
25
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_MONGO_HOST`| Mongo server host. Cannot be set with URI. | String |`localhost`|
26
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_MONGO_PORT`| Mongo server port. Cannot be set with URI. | Positive integer |`13012`|
27
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_CHAIN_ID`| Chain ID of the blockchain network to connect. | Positive integer |`134`|
28
-
|`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`|
29
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_NODE_ADDRESS`| URL to connect to the blockchain network. | URL |`https://bellecour.iex.ec`|
30
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_BLOCK_TIME`| Duration between consecutive blocks on the blockchain network, in seconds. | Positive integer |`5`|
31
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_HUB_ADDRESS`| Proxy contract address to interact with the iExec on-chain protocol. | Ethereum Address |`0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f`|
32
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_GAS_PRICE_MULTIPLIER`| Transactions will be sent with `networkGasPrice * gasPriceMultiplier`. | Float |`1.0`|
33
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_GAS_PRICE_CAP`| In Wei, will be used for transactions if `networkGasPrice * gasPriceMultiplier > gasPriceCap`. | Positive integer |`22000000000`|
34
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_WALLET_PATH`| Path to the wallet of the server. | String |`src/main/resources/wallet.json`|
35
-
|`IEXEC_BLOCKCHAIN_ADAPTER_API_WALLET_PASSWORD`| Password to unlock the wallet of the server. | String |`whatever`|
22
+
| Environment variable | Description | Type | Default value |
|`IEXEC_BLOCKCHAIN_ADAPTER_API_PORT`| Server HTTP port of the Blockchain Adapter API. | Positive integer |`13010`|
25
+
|`IEXEC_BLOCKCHAIN_ADAPTER_API_USERNAME`| Login username of the server. | String |`admin`|
26
+
|`IEXEC_BLOCKCHAIN_ADAPTER_API_PASSWORD`| Login password of the server. | String |`whatever`|
27
+
|`IEXEC_BLOCKCHAIN_ADAPTER_API_MONGO_HOST`| Mongo server host. Cannot be set with URI. | String |`localhost`|
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`|
36
+
|`IEXEC_BLOCKCHAIN_ADAPTER_API_MAX_ALLOWED_TX_PER_BLOCK`| Max number of transactions per block, it can either be `1` or `2`. | Positive integer |`1`|
37
+
|`IEXEC_BLOCKCHAIN_ADAPTER_API_WALLET_PATH`| Path to the wallet of the server. | String |`src/main/resources/wallet.json`|
38
+
|`IEXEC_BLOCKCHAIN_ADAPTER_API_WALLET_PASSWORD`| Password to unlock the wallet of the server. | String |`whatever`|
36
39
37
40
## Health checks
38
41
39
42
A health endpoint (`/actuator/health`) is enabled by default and can be accessed on the **IEXEC_BLOCKCHAIN_ADAPTER_API_PORT**.
40
-
This endpoint allows to define health checks in an orchestrator or a [compose file](https://github.com/compose-spec/compose-spec/blob/master/spec.md#healthcheck).
41
-
No default strategy has been implemented in the [Dockerfile](docker/Dockerfile) at the moment.
43
+
This endpoint allows to define health checks in an orchestrator or
44
+
a [compose file](https://github.com/compose-spec/compose-spec/blob/master/spec.md#healthcheck).
45
+
No default strategy has been implemented in the [Dockerfile](Dockerfile) at the moment.
0 commit comments