kvnn / OrdControl

A one-click AWS deployment to run a Bitcoin full-node and Ord instance with a client-controller. The client currently facilitates creating an ord wallet, viewing balance/address info and uploading / inscribing files.
23 stars 3 forks source link
aws bitcoin inscriptions ordinals python python3 systemd terraform ubuntu websockets

NOTE: this project is no longer supported

OrdControl

This is a one-click AWS deployment to run a Bitcoin full-node and Ord instance with a client-controller. The client currently facilitates creating an ord wallet, viewing balance/address info and uploading / inscribing files.

OrdControl server-built

Quickstart

  1. Have an AWS account set up with the cli : https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html
  2. git clone git@github.com:kvnn/OrdControl.git
  3. cd OrdControl
  4. terraform init
  5. terraform apply
  6. open the visibility / control client by opening index.html in the browser (for me its at file:///Users/kevin/Projects/OrdControl/client/index.html)
  7. visit your server [OPTIONAL]:
    1. copy / paste the ssh_connection_string (printed once #5 is complete) to connect to your instance
    2. in instance, run tail -f /var/log/cloud-init-output.log to see status of the post-deploy script
    3. wait until you see "ord-server init.tpl finished" in the above before taking any actions (the client will update you as well)
    4. you can manually run ord commands via /home/ubuntu/ord/target/release/ord --bitcoin-data-dir=/mnt/bitcoin-ord-data/bitcoin --data-dir=/mnt/bitcoin-ord-data/ord {CMD e.g. "info"}

Details

TODO

ImageMagick tricks

reduce gif size

convert repage-orig.gif -coalesce -fuzz 2% +dither -layers Optimize +map repage.gif

controller.py: example outputs

lets make this better

  inscribe output={

    "commit": "7ed2f88a8c27e67e2721c454a045505b47c2741532fbd5306e865cc10f4a0f53",

    "inscription": "452a3e9b08a7c0d1919fe4b7a9a8d08ebc8dc58ebd1fd56de745a2cbbddfafc5i0",

    "reveal": "452a3e9b08a7c0d1919fe4b7a9a8d08ebc8dc58ebd1fd56de745a2cbbddfafc5",

    "fees": 7965

  }

  , error=
  _put_dynamo_item inscribed ∂ßååå.txt: {

    "commit": "7ed2f88a8c27e67e2721c454a045505b47c2741532fbd5306e865cc10f4a0f53",

    "inscription": "452a3e9b08a7c0d1919fe4b7a9a8d08ebc8dc58ebd1fd56de745a2cbbddfafc5i0",

    "reveal": "452a3e9b08a7c0d1919fe4b7a9a8d08ebc8dc58ebd1fd56de745a2cbbddfafc5",

    "fees": 7965

  }