From e38201a152aca26e473113d59d67fee6c5b89aee Mon Sep 17 00:00:00 2001 From: zathras-crypto Date: Sun, 1 Feb 2015 19:55:17 -0800 Subject: [PATCH 1/4] Fix version for tag --- src/mastercore_version.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/mastercore_version.h b/src/mastercore_version.h index 22ef380038f96..ba421f41e0df3 100644 --- a/src/mastercore_version.h +++ b/src/mastercore_version.h @@ -6,12 +6,7 @@ #define _MASTERCORE_VERSION_H #define OMNICORE_VERSION_BASE 90 // 82 = 0.0.8.2 91 = 0.0.9.1 103 = 0.0.10.3 etc - #define OMNICORE_VERSION_TYPE "-dev" // switch to -rel for tags, switch back to -dev for development - - /* use this when we tag 0.0.9 - #define OMNICORE_VERSION_BASE 90 - #define OMNICORE_VERSION_TYPE "-rel" - */ + #define OMNICORE_VERSION_TYPE "-rel" // switch to -rel for tags, switch back to -dev for development /* after tagging switch it onto the next dev version #define OMNICORE_VERSION_BASE 91 From c0b12c8b134d10aec0276434265b9a66c87cd16a Mon Sep 17 00:00:00 2001 From: zathras-crypto Date: Sun, 1 Feb 2015 22:11:49 -0800 Subject: [PATCH 2/4] Add API doc for getsto_MP call --- doc/apidocumentation.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/doc/apidocumentation.md b/doc/apidocumentation.md index b0e7172985db0..98e939afa6268 100644 --- a/doc/apidocumentation.md +++ b/doc/apidocumentation.md @@ -439,6 +439,42 @@ $src/mastercored sendtoowners_MP "1MCHESTxYkPSLoJ57WBQot7vz3xkNahkcb" 2147483668 ``` *Please note, the private key for the requested sender address must be available in the wallet.* +###Retrieving details for a Master Protocol Send To Owners transaction +The **getsto_MP** call allows for retrieval of details for a Send To Owners transaction including the recipients and their respective amounts. + +**Required Parameters** +- **_transaction ID (string):_** A valid Master Protocol Send To Owners transaction ID + +**Additional Optional Parameters** +- There are currently no supported optional parameters for this call. + +**Examples** +``` +$src/mastercored getsto_MP 61f161023f11dae651d739bded05805356ed2f6dc136398dc3878b425ef73c62 +{ + "txid" : "61f161023f11dae651d739bded05805356ed2f6dc136398dc3878b425ef73c62", + "sendingaddress" : "1PVWtK1ATnvbRaRceLRH5xj8XV1LxUBu7n", + "ismine" : false, + "confirmations" : 29534, + "fee" : 0.00010000, + "blocktime" : 1406079768, + "version" : 0, + "type_int" : 3, + "type" : "Send To Owners", + "propertyid" : 2, + "divisible" : true, + "amount" : "1.00000000", + "valid" : true, + "totalstofee" : "0.00001291", + "recipients" : [ + ] +} +``` +``` +{"jsonrpc":"1.0","id":"1","method":"getsto_MP","params":["61f161023f11dae651d739bded05805356ed2f6dc136398dc3878b425ef73c62"]} +{"result":{"txid":"61f161023f11dae651d739bded05805356ed2f6dc136398dc3878b425ef73c62","sendingaddress":"1PVWtK1ATnvbRaRceLRH5xj8XV1LxUBu7n","ismine":false,"confirmations":29535,"fee":0.00010000,"blocktime":1406079768,"version":0,"type_int":3,"type":"Send To Owners","propertyid":2,"divisible":true,"amount":"1.00000000","valid":true,"totalstofee":"0.00001291","recipients":[]},"error":null,"id":"1"} +``` + ###Listing currently active DeX sell offers The **getactivedexsells_MP** call allows for listing all currently active Master Protocol DeX sell offers. From 2ae91beb84fc3bb5f701d50c940cb0910f2dc087 Mon Sep 17 00:00:00 2001 From: zathras-crypto Date: Sun, 1 Feb 2015 22:15:43 -0800 Subject: [PATCH 3/4] Touch up getsto_MP API doc --- doc/apidocumentation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/apidocumentation.md b/doc/apidocumentation.md index 98e939afa6268..e5ebd418d6015 100644 --- a/doc/apidocumentation.md +++ b/doc/apidocumentation.md @@ -439,14 +439,14 @@ $src/mastercored sendtoowners_MP "1MCHESTxYkPSLoJ57WBQot7vz3xkNahkcb" 2147483668 ``` *Please note, the private key for the requested sender address must be available in the wallet.* -###Retrieving details for a Master Protocol Send To Owners transaction -The **getsto_MP** call allows for retrieval of details for a Send To Owners transaction including the recipients and their respective amounts. +###Retrieving details for a Send To Owners transaction +The **getsto_MP** call allows for retrieval of details for a Send To Owners transaction including the recipients and their respective amounts. Please note, by default the call will only list recipients in the wallet. To list all recipients you may use the filter ```"*"```. **Required Parameters** - **_transaction ID (string):_** A valid Master Protocol Send To Owners transaction ID **Additional Optional Parameters** -- There are currently no supported optional parameters for this call. +- **_address (string):_** A valid bitcoin address to filter returned recipients on or * for all recipients **Examples** ``` From a7b9fef93516aef4d7ed9259360b3f7dae682d87 Mon Sep 17 00:00:00 2001 From: zathras-crypto Date: Mon, 2 Feb 2015 02:36:41 -0800 Subject: [PATCH 4/4] Add getinfo_MP RPC call to API doc --- doc/apidocumentation.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/doc/apidocumentation.md b/doc/apidocumentation.md index e5ebd418d6015..fe56d84cfd25e 100644 --- a/doc/apidocumentation.md +++ b/doc/apidocumentation.md @@ -12,6 +12,38 @@ As all existing Bitcoin Core functionality is inherent to Master Core, the RPC p In addition to this change, 0.0.6 "reserved" amounts are no longer split into two reserved fields, accept and sell, but into one complete "reserved" field, in 0.0.7. +###Obtaining the state of the client +The **getinfo_MP** call provides information about the current state of the client. + +*Note, it is important to periodically poll the getinfo_MP call to check there is no current alert. The OmniCore alert system is seperate to the Bitcoin alert system and has been coded to also trigger the existing alertnotify script if specified at startup, however this has had very limited testing as of current so a periodical poll is suggested at this time. + +**Required Parameters** +- There are no required parameters for this call. + +**Additional Optional Parameters** +- There are currently no supported optional parameters for this call. + +**Examples** +``` +$src/mastercored getinfo_MP +{ + "mastercoreversion" : "0.0.9-dev", + "bitcoincoreversion" : "0.903", + "commitinfo" : "2b1010f", + "block" : 341613, + "blocktime" : 1422872445, + "blocktransactions" : 0, + "totaltrades" : 0, + "totaltransactions" : 19762, + "alert" : { + } +} +``` +``` +{"jsonrpc":"1.0","id":"1","method":"getinfo_MP","params":[]} +{"result":{"mastercoreversion":"0.0.9-dev","bitcoincoreversion":"0.903","commitinfo":"2b1010f","block":341613,"blocktime":1422872445,"blocktransactions":0,"totaltrades":0,"totaltransactions":19762,"alert":{}},"error":null,"id":"1"} +``` + ###Broadcasting a Simple Send transaction Simple send allows a Master Protocol currency to be transferred from address to address in a one-to-one transaction. Simple send transactions are exposed via the **send_MP** RPC call.