This Arkive has two entities, Transfer and Approval. The Arkive also has two corresponding event handlers onTransfer and onApproval which are triggered when the Transfer
and Approval
events are emitted by the source contract which is configured to WETH
in the manifest. When the handlers are triggered they parse the amount and store either an Approval or Transfer entity in the database.
- Docker
- Full Archive RPC (Infura, Ankr, Alchemy, etc)
First make sure .env is configured correctly with your RPC endpoint. In this example we are connecting the mainnet
with the Ankr public ETH endpoint.
MAINNET_RPC_URL=https://rpc.ankr.com/eth
All available tasks can been seen with
deno task
To start a new instance of the Arkive you can use deno task
to run the new
script with the following command
deno task new
To reset the database and resync the Arkive run reset
task
deno task reset
If Arkiver is running there should now be webpage avaiable at http://0.0.0.0:4000/graphql
In the left side you can use the no-code explorer to pick and chose which Entities and what fields of the Entities you would like to look at. Here is an example query for this Arkive.
query MyQuery {
Approval {
block
hash
owner
spender
value
}
Transfer {
block
hash
from
to
value
}
}