Mithril sync cardano mainnet

  • Download the binary
wget https://github.com/input-output-hk/mithril/releases

tar -xzf mithril-x.tar.gz

chmod +x *
  • set env variable
export NETWORK=mainnet

export AGGREGATOR_ENDPOINT=https://aggregator.release-mainnet.api.mithril.network/aggregator

export GENESIS_VERIFICATION_KEY=5b3139312c36362c3134302c3138352c3133382c31312c3233372c3230372c3235302c3134342c32372c322c3138382c33302c31322c38312c3135352c3230342c31302c3137392c37352c32332c3133382c3139362c3231372c352c31342c32302c35372c37392c33392c3137365d

####preprod
export NETWORK=preprod

export AGGREGATOR_ENDPOINT=https://aggregator.release-preprod.api.mithril.network/aggregator

export GENESIS_VERIFICATION_KEY=5b3132372c37332c3132342c3136312c362c3133372c3133312c3231332c3230372c3131372c3139382c38352c3137362c3139392c3136322c3234312c36382c3132332c3131392c3134352c31332c3233322c3234332c34392c3232392c322c3234392c3230352c3230352c33392c3233352c34345d

#https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-preprod/genesis.vkey

mithril-client cardano-db snapshot list


mithril-client snapshot download 87122ee3415112a1d2b215003e134652dd0ebf8f7588db8a0745336b9b249d4e

More : https://mithril.network/doc/manual/getting-started/bootstrap-cardano-node

PATH="$PATH:/root/cardano:/root/cardano/bin"
export CARDANO_NODE_SOCKET_PATH=/root/cardano/node-ipc/node.socket
services:
  cardano-node:
    image: ghcr.io/intersectmbo/cardano-node:10.2.1
    environment:
      - NETWORK=${NETWORK:-preprod}
    volumes:
      - /root/cardano/db:/data/db
      - /root/cardano/node-ipc:/ipc
    logging:
      driver: "json-file"
      options:
        max-size: "200k"
        max-file: "10"

  cardano-submit-api:
    image: ghcr.io/intersectmbo/cardano-submit-api:10.2.1
    environment:
      - NETWORK=${NETWORK:-preprod}
    depends_on:
      - cardano-node
    volumes:
      - /root/cardano/node-ipc:/node-ipc
    ports:
      - 8090:8090
    restart: on-failure
    logging:
      driver: "json-file"
      options:
        max-size: "200k"
        max-file: "10"

Published by

Leave a Reply

Your email address will not be published. Required fields are marked *