ℹ️ This is a fork/based on apezord/ord-dogecoin
We included the real wonky block rewards from block 0 until block 144,999. We invite you to critically review our code in src/epoch.rs
. We are convinced that doginals should use actual block rewards instead of a simplified version.
You can find the API documentation here.
Most convenient way to view the API documentation is to use the Swagger Editor.
You can import the openapi.yaml
file and view the API documentation via Import URL: https://raw.githubusercontent.com/verydogelabs/wonky-ord-dogecoin/main/openapi.yaml
.
You will have to launch your own Dogecoin node and have it fully synced. You can use the following guide to set up your own Dogecoin node:
- Download latest version from Dogecoin and install it.
- We have tested and launched the indexer with Dogecoin Core v1.14.8.
- Follow the installation instructions
- We started the Dogecoin Core with the following flags:
dogecoind -txindex -rpcuser=foo -rpcpassword=bar -rpcport=22555 -rpcallowip=0.0.0.0/0 -rpcbind=127.0.0.1
- Make sure your Dogecoin node is fully synced before starting the indexer.
‼️ IMPORTANT Ensure to replacefoo
andbar
with your own username and password. IMPORTANT‼️
- We started the Dogecoin Core with the following flags:
- Start the indexer with rpc-url pointing to your Dogecoin node and the data-dir pointing to the directory where the indexer should store its data.
### Start the ord indexer / server
```shell
export RUST_LOG=info
// Set the path to the subsidies.json and starting_sats.json files
export SUBSIDIES_PATH=/home/dogeuser/wonky-ord-dogecoin/subsidies.json
export STARTING_SATS_PATH=/home/dogeuser/wonky-ord-dogecoin/starting_sats.json
# ensure the data directory exists
mkdir -p /mnt/ord-node/indexer-data-main
# replace YOUR_RPC_URL with the URL of your Dogecoin node like: http://foo:[email protected]:22555
// Start Indexing
ord --rpc-url=YOUR_RPC_URL --data-dir=/mnt/ord-node/indexer-data-main --nr-parallel-requests=16 --first-inscription-height=4609723 --first-dune-height=5084000 --index-dunes --index-transactions --index-drc20 index
// Start Indexing + Server
ord --rpc-url=YOUR_RPC_URL --data-dir=/mnt/ord-node/indexer-data-main --nr-parallel-requests=16 --first-inscription-height=4609723 --first-dune-height=5084000 --index-dunes --index-transactions --index-drc20 server
--index-transactions
will store transaction data, this is currently needed for --index-drc20
and furthermore helps
for a better performance for the API.
--nr-parallel-requests
will configure how many parallel requests while indexing are sent to your RPC Server - 16 is
recommended for default node settings.
With all settings enabled, the database will currently need around 400gb when fully indexed.
On the root level of this repo you'll find a subsidies.json
and starting_sats.json
file. When starting ord you will need to set the location of these files to env variables.
Example:
If your wonky-ord-dogecoin
dir is /home/dogeuser/wonky-ord-dogecoin
then set the vars:
SUBSIDIES_PATH=/home/dogeuser/wonky-ord-dogecoin/subsidies.json
and
STARTING_SATS_PATH=/home/dogeuser/wonky-ord-dogecoin/starting_sats.json
.
You can use a docker image to run the ord indexer / server.
- Use ubuntu linux or a similar distribution
- Install dogecoind and have it fully synced 1See Dogecoin installation instructions
- Install docker and docker-compose (Ubuntu)[https://docs.docker.com/engine/install/ubuntu/]
- Clone this repository
docker build -t verydogelabs/wonky-ord-dogecoin .
docker compose up -d
When stopping the ord in a container it is important to add a timeout. If no timeout is add, the process cannot close the database properly and the next start will take ages or fail.
docker compose stop -t 600
docker compose down
Please check the original README for more information on how to run ord
and the required env vars.