You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
540 B
21 lines
540 B
8 years ago
|
#!/bin/bash
|
||
|
|
||
|
echo ""
|
||
|
echo "
|
||
|
The getrawchangeaddress RPC returns a new Bitcoin address for receiving change.
|
||
|
This is for use with raw transactions, not normal use."
|
||
|
|
||
|
echo ""
|
||
|
|
||
|
echo "Result:
|
||
|
A P2PKH address which has not previously been returned by this RPC.
|
||
|
The address will be removed from the keypool but not marked as a receiving address,
|
||
|
so RPCs such as the dumpwallet RPC will show it as a change address."
|
||
|
|
||
|
echo ""
|
||
|
|
||
|
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getrawchangeaddress\"}"
|
||
|
|
||
|
echo ""
|
||
|
|