This directory contains scripts for setting up a local development environment for Bitcoin Core.
- Run
./node/run_local_node_docker.shor./node/run_local_node_podman.shto start a local Bitcoin Core node - Run
source ./cmd_alias_docker.shorsource ./cmd_alias_podman.shto set up aliases for runningbitcoin-cliandordcommands
- Run
rooch server start -n local --btc-sync-block-interval 1 --btc-rpc-url http://127.0.0.1:18443 --btc-rpc-username roochuser --btc-rpc-password roochpass - Run
rooch account list --jsonto get the active accountbitcoin_address - Run
bitcoin-cli generatetoaddress 101 <bitcoin_address>to generate 101 blocks to the address - Run
rooch rpc request --method btc_queryUTXOs --params '["all", null, "2", true]'to query the UTXO set - Run
rooch rpc request --method btc_queryInscriptions --params '["all", null, "2", true]'to query the Inscription set - Run
rooch account balanceshow the balance of active account(Include BTC)
You can also configure the environment using the env script, use ./env.sh -i
- Run
ord serverto start ord indexer server - Run
ord wallet createto create a new ord wallet - Run
ord wallet receiveto get a new address to receive funds - Run
bitcoin-cli generatetoaddress 101 <address>to generate 101 blocks to the address - Run
ord wallet balanceto check the balance of the wallet - Run
echo "{"p":"brc-20","op":"mint","tick":"Rooch","amt":"1"}">/tmp/hello.txtto create a file - Run
ord wallet inscribe --fee-rate 1 --file /tmp/hello.txt --destination <address>to inscribe the file to the blockchain - Run
bitcoin-cli generatetoaddress 1 <address>to mine an inscription - Run
ord wallet inscriptionsto get the reveal transaction ID
rooch bitseed generator --name random --generator generator/cpp/generator.wasm
rooch bitseed deploy --fee-rate 5000 --generator $the_inscription_from_pre_step --tick bits --amount 210000000000 --deploy-args '{"height":{"type":"range","data":{"min":1,"max":1000}}}'
rooch bitseed mint --fee-rate 5000 --deploy-inscription-id $the_inscription_from_pre_step --user-input hello_bitseed
rooch bitseed split --fee-rate 5000 --sft-inscription-id $the_inscription_from_pre_step --amounts 500 --amounts 300
rooch bitseed merge --fee-rate 5000 --sft-inscription-ids $the_inscription_from_pre_step_0 --sft-inscription-ids $the_inscription_from_pre_step_1 --sft-inscription-ids $the_inscription_from_pre_step_2
rooch bitseed view --sft-inscription-id $the_inscription_from_pre_step- Bitcoin Core
- ord testing: for testing ord inscriptions