- Follow the instructions in the https://github.com/rooch-network/rooch/tree/main/scripts/bitcoin
- Compile and install bitseed via run
cargo install --path .
in the bitseed directory. - Export a command alias to run bitseed command.
alias bitseed="bitseed --regtest --rpc-url http://127.0.0.1:18443 --bitcoin-rpc-user roochuser --bitcoin-rpc-pass roochpass"
Start a terminal and run the following commands:
ord server
to start the ord server
Start another terminal and run the following commands:
- Run
ord wallet create
to create a new ord wallet - Run
ord wallet receive
to get a new address to receive funds - Run
bitcoin-cli generatetoaddress 101 <address>
to generate 101 blocks to the address - Run
ord wallet balance
to check the balance of the wallet - Run
echo "Hello rooch">/tmp/hello.txt
to create a file - Run
bitseed generator --fee-rate 1 --name test --generator generator/generator.wasm
to inscribe the file to the blockchain - Run
bitcoin-cli generatetoaddress 1 <address>
to mine an inscription - Run
bitseed deploy --fee-rate 1 --generator $the_inscription_from_pre_step --tick bits --amount 210000000000 --deploy-args 1000 --deploy-args 100000
- Run
bitcoin-cli generatetoaddress 1 <address>
to mine an inscription - Run
bitseed mint --deploy-inscription-id $the_inscription_from_pre_step --fee-rate 1
- Run
bitcoin-cli generatetoaddress 1 <address>
to mine an inscription - Run
ord wallet inscriptions
to get the inscriptions
- Bitcoin Core
- ord testing: for testing ord inscriptions