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.
18 lines
538 B
18 lines
538 B
#!/bin/bash
|
|
|
|
clear
|
|
echo ""
|
|
echo "
|
|
The encryptwallet RPC encrypts the wallet with a passphrase.
|
|
This is only to enable encryption for the first time. After encryption is enabled,
|
|
you will need to enter the passphrase to use private keys"
|
|
echo ""
|
|
echo ""
|
|
|
|
echo "Scenario: Test encryptwallet RPC without passphrase"
|
|
echo "Result: Should Return an error message indicating passphrase required"
|
|
echo ""
|
|
|
|
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"encryptwallet\",\"passphrase\":\"\"}"
|
|
echo ""
|
|
echo ""
|
|
|