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
use specific wallet ( if more present ) → add argument -rpcwallet=our_legacy_wallet get new addresses for andrei1, deployer, andrei2 and their private keys
🔑 Data users
alice1 address and privkey
bcrt1q2282phtvk88049pkdk9nrhp6kydcrqngyhdcw9
cSaUEMVd4XvogDxpGZ5okMhjPHmtNmbCfnGTJt8ZNtE2cJcHcn2S
bob address and privkey
bcrt1q8ntuj6ljdhnk9cqzlj7kpfrwtqx6k4h9xfthxh
cSMvmcWW7inRSD7NXPdhgySLiHX8A8q4Yb3HpxHNiYZuNZS9Yxb1
alice2 address and privkey
bcrt1qeccxwghf7cyh4ng5vxgsn4r8p3gj8069ma08dw
cT5ZwiL9KRqY286ccvovPfyoff3gsJAjgGP3siDGBqLkEKzFbDFQ
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