ExWallet allows you to check the status of an Ethereum transaction
from its hash.
The possible responses to a valid transaction hash are success, failed and pending
.
Copy .env-sample
to .env
:
cp .env-sample .env
Open .env
file and set value for environment variable ETHERSCAN_API_KEY
:
Note: click here to learn how create an API KEY
Build docker image:
docker-compose build
Create database for project:
docker-compose run api mix ecto.create
Up the project:
docker-compose up
The application will be available through
success transacation
example:
0x7b6d0e8d812873260291c3f8a9fa99a61721a033a01e5c5af3ceb5e1dc9e7bd0
failed transacation
example:
0xb7636e1fe3db6a1851f58aef6c3b14280a954622dea9787bd2f972c298a44f14
pending transacation
:
you can check for pending transactions in this EtherScan pending transactions list
To run tests, first we need to create the test database (needed only for first time):
docker-compose run api env MIX_ENV=test mix ecto.create
Then run tests using:
docker-compose run api env MIX_ENV=test mix test