This directory contains scripts for setting up a local development environment for Bitcoin Core.
- Run
./node/run_local_node_docker.sh
or./node/run_local_node_podman.sh
to start a local Bitcoin Core node - Run
source ./cmd_alias_docker.sh
orsource ./cmd_alias_podman.sh
to set up aliases for runningbitcoin-cli
andord
commands
- 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 --json
to 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 balance
show the balance of active account(Include BTC)
You can also configure the environment using the env script, use ./env.sh -i
- Run
ord server
to start ord indexer server - 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 "{"p":"brc-20","op":"mint","tick":"Rooch","amt":"1"}">/tmp/hello.txt
to 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 inscriptions
to 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