RPC Browser and transactions legacy
These are the main steps to be done to send a transaction from the rpc-browser. These are to be done in using legacy addresses to showcase the use of the explorer and terminal. All the steps done from terminal can be done visually from the local bitcoin explorer deployed using clarinet integrate.
Main steps:
getnewaddress - 3 legacy_addresses alice1, alice2 and bob
get privkey alice1 and bob - dumprivkey
generate 101 blocks to one address to andrei1
sendtoaddress to bob, amount
sign it using the private key of bob
Complete flow
create legacy_wallet from cli
bitcoin-cli -rpcuser=devnet -rpcpassword=devnet -rpcconnect=localhost -rpcport=18443 createwallet our_legacy_wallet false false "" false false falseuse specific wallet ( if more present ) → add argument -rpcwallet=our_legacy_wallet get new addresses for andrei1, deployer, andrei2 and their private keys
bitcoin-cli -rpcuser=devnet -rpcpassword=devnet -rpcconnect=localhost -rpcport=18443 -rpcwallet=our_legacy_wallet getnewaddress
>> new_address
bitcoin-cli -rpcuser=devnet -rpcpassword=devnet -rpcconnect=localhost -rpcport=18443 -rpcwallet=our_legacy_wallet dumpprivkey "new_address"
>> privkey
generate blocks to andrei1 to have balance
send to deployer 0.01 BTC
get transaction details and keep the vout value
create transaction from bob’s output to alice2
sign transaction as deployer. do it from the explorer
broadcast transaction to move BTC
see the list of transactions and if the amount is in the wanted address.
Last updated