Skip to content

Commit

Permalink
example Peercoin address
Browse files Browse the repository at this point in the history
  • Loading branch information
peerchemist committed Apr 13, 2019
1 parent 0e05ae9 commit 2350b9d
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 65 deletions.
59 changes: 15 additions & 44 deletions src/qt/forms/sendcoinsdialog.ui
Expand Up @@ -13,7 +13,7 @@
<property name="windowTitle">
<string>Send Coins</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,1,0,0">
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,0,0">
<property name="bottomMargin">
<number>8</number>
</property>
Expand Down Expand Up @@ -577,6 +577,19 @@
</layout>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="widgetResizable">
Expand All @@ -588,7 +601,7 @@
<x>0</x>
<y>0</y>
<width>830</width>
<height>296</height>
<height>238</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0">
Expand All @@ -615,45 +628,6 @@
</widget>
</widget>
</item>
<item>
<widget class="QFrame" name="frameFee">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayoutFee1">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
Expand Down Expand Up @@ -789,7 +763,4 @@
<include location="../bitcoin.qrc"/>
</resources>
<connections/>
<buttongroups>
<buttongroup name="groupFee"/>
</buttongroups>
</ui>
4 changes: 2 additions & 2 deletions src/qt/forms/sendcoinsentry.ui
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>729</width>
<height>150</height>
<height>156</height>
</rect>
</property>
<property name="focusPolicy">
Expand Down Expand Up @@ -163,7 +163,7 @@
</widget>
</item>
<item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayoutAmount" stretch="0,1,0">
<layout class="QHBoxLayout" name="horizontalLayoutAmount" stretch="0,0,0">
<item>
<widget class="BitcoinAmountField" name="payAmount"/>
</item>
Expand Down
8 changes: 4 additions & 4 deletions src/rpc/misc.cpp
Expand Up @@ -336,11 +336,11 @@ UniValue verifymessage(const JSONRPCRequest& request)
"\nUnlock the wallet for 30 seconds\n"
+ HelpExampleCli("walletpassphrase", "\"mypassphrase\" 30") +
"\nCreate the signature\n"
+ HelpExampleCli("signmessage", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\" \"my message\"") +
+ HelpExampleCli("signmessage", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\" \"my message\"") +
"\nVerify the signature\n"
+ HelpExampleCli("verifymessage", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\" \"signature\" \"my message\"") +
+ HelpExampleCli("verifymessage", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\" \"signature\" \"my message\"") +
"\nAs json rpc\n"
+ HelpExampleRpc("verifymessage", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\", \"signature\", \"my message\"")
+ HelpExampleRpc("verifymessage", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\", \"signature\", \"my message\"")
);

LOCK(cs_main);
Expand Down Expand Up @@ -391,7 +391,7 @@ UniValue signmessagewithprivkey(const JSONRPCRequest& request)
"\nCreate the signature\n"
+ HelpExampleCli("signmessagewithprivkey", "\"privkey\" \"my message\"") +
"\nVerify the signature\n"
+ HelpExampleCli("verifymessage", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\" \"signature\" \"my message\"") +
+ HelpExampleCli("verifymessage", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\" \"signature\" \"my message\"") +
"\nAs json rpc\n"
+ HelpExampleRpc("signmessagewithprivkey", "\"privkey\", \"my message\"")
);
Expand Down
30 changes: 15 additions & 15 deletions src/wallet/rpcwallet.cpp
Expand Up @@ -284,8 +284,8 @@ UniValue setaccount(const JSONRPCRequest& request)
"1. \"address\" (string, required) The peercoin address to be associated with an account.\n"
"2. \"account\" (string, required) The account to assign the address to.\n"
"\nExamples:\n"
+ HelpExampleCli("setaccount", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\" \"tabby\"")
+ HelpExampleRpc("setaccount", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\", \"tabby\"")
+ HelpExampleCli("setaccount", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\" \"tabby\"")
+ HelpExampleRpc("setaccount", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\", \"tabby\"")
);

LOCK2(cs_main, pwallet->cs_wallet);
Expand Down Expand Up @@ -333,8 +333,8 @@ UniValue getaccount(const JSONRPCRequest& request)
"\nResult:\n"
"\"accountname\" (string) the account address\n"
"\nExamples:\n"
+ HelpExampleCli("getaccount", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\"")
+ HelpExampleRpc("getaccount", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\"")
+ HelpExampleCli("getaccount", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\"")
+ HelpExampleRpc("getaccount", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\"")
);

LOCK2(cs_main, pwallet->cs_wallet);
Expand Down Expand Up @@ -590,11 +590,11 @@ UniValue signmessage(const JSONRPCRequest& request)
"\nUnlock the wallet for 30 seconds\n"
+ HelpExampleCli("walletpassphrase", "\"mypassphrase\" 30") +
"\nCreate the signature\n"
+ HelpExampleCli("signmessage", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\" \"my message\"") +
+ HelpExampleCli("signmessage", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\" \"my message\"") +
"\nVerify the signature\n"
+ HelpExampleCli("verifymessage", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\" \"signature\" \"my message\"") +
+ HelpExampleCli("verifymessage", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\" \"signature\" \"my message\"") +
"\nAs json rpc\n"
+ HelpExampleRpc("signmessage", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\", \"my message\"")
+ HelpExampleRpc("signmessage", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\", \"my message\"")
);

LOCK2(cs_main, pwallet->cs_wallet);
Expand Down Expand Up @@ -648,13 +648,13 @@ UniValue getreceivedbyaddress(const JSONRPCRequest& request)
"amount (numeric) The total amount in " + CURRENCY_UNIT + " received at this address.\n"
"\nExamples:\n"
"\nThe amount from transactions with at least 1 confirmation\n"
+ HelpExampleCli("getreceivedbyaddress", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\"") +
+ HelpExampleCli("getreceivedbyaddress", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\"") +
"\nThe amount including unconfirmed transactions, zero confirmations\n"
+ HelpExampleCli("getreceivedbyaddress", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\" 0") +
+ HelpExampleCli("getreceivedbyaddress", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\" 0") +
"\nThe amount with at least 6 confirmations\n"
+ HelpExampleCli("getreceivedbyaddress", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\" 6") +
+ HelpExampleCli("getreceivedbyaddress", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\" 6") +
"\nAs a json rpc call\n"
+ HelpExampleRpc("getreceivedbyaddress", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\", 6")
+ HelpExampleRpc("getreceivedbyaddress", "\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\", 6")
);

ObserveSafeMode();
Expand Down Expand Up @@ -1031,13 +1031,13 @@ UniValue sendmany(const JSONRPCRequest& request)
" the number of addresses.\n"
"\nExamples:\n"
"\nSend two amounts to two different addresses:\n"
+ HelpExampleCli("sendmany", "\"\" \"{\\\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\\\":0.01,\\\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\\\":0.02}\"") +
+ HelpExampleCli("sendmany", "\"\" \"{\\\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\\\":0.01,\\\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\\\":0.02}\"") +
"\nSend two amounts to two different addresses setting the confirmation and comment:\n"
+ HelpExampleCli("sendmany", "\"\" \"{\\\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\\\":0.01,\\\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\\\":0.02}\" 6 \"testing\"") +
+ HelpExampleCli("sendmany", "\"\" \"{\\\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\\\":0.01,\\\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\\\":0.02}\" 6 \"testing\"") +
"\nSend two amounts to two different addresses, subtract fee from amount:\n"
+ HelpExampleCli("sendmany", "\"\" \"{\\\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\\\":0.01,\\\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\\\":0.02}\" 1 \"\" \"[\\\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\\\",\\\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\\\"]\"") +
+ HelpExampleCli("sendmany", "\"\" \"{\\\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\\\":0.01,\\\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\\\":0.02}\" 1 \"\" \"[\\\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\\\",\\\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\\\"]\"") +
"\nAs a json rpc call\n"
+ HelpExampleRpc("sendmany", "\"\", {\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}, 6, \"testing\"")
+ HelpExampleRpc("sendmany", "\"\", {\"PKRWHSDPDZHFJ9Mrjy65fPN3wL8YWQrD8q\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}, 6, \"testing\"")
);

ObserveSafeMode();
Expand Down

0 comments on commit 2350b9d

Please sign in to comment.