Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------
- An example of the send_MP RPC call to send currency between addresses:
- *Note we're still quite verbose here, this will be pushed into mastercore.log soon :)
- #src/mastercored send_MP 1MCHESTxYkPSLoJ57WBQot7vz3xkNahkcb 1MCHESTbJhJK27Ygqj4qKkx4Z4ZxhnP826 1 0.005
- pkt : 010000000000000001000000000007a1200000000000000000000000000000
- hash : a15c9f713e595e974b4efa0953e21b4c11ea882023a47fef5f9f86b0e5d4aba1
- packet : a05c9f713e595e974a4efa0953e21ced31ea882023a47fef5f9f86b0e5d4ab
- pubKey check: 02a05c9f713e595e974a4efa0953e21ced31ea882023a47fef5f9f86b0e5d4ab85
- pubKey check: 02a05c9f713e595e974a4efa0953e21ced31ea882023a47fef5f9f86b0e5d4ab86
- ClassB_send(): 1 04e4967e86ff8ee6c643c81cd236fb6a2eba379c397c8dff99ff2c1e91616260a820f86242c09bd5a25dd1dc465d988e0c2287dafa88b0e3bcd905dca98d55852b 02a05c9f713e595e974a4efa0953e21ced31ea882023a47fef5f9f86b0e5d4ab86 2
- OP_CHECKMULTISIG, line 2488, file: mastercore.cpp
- ClassB_send():CTransaction(hash=7a06ef1bb6, ver=1, vin.size=3, vout.size=4, nLockTime=0)
- CTxIn(COutPoint(a230ac2ded, 2), scriptSig=3045022100c12642b0fed7bc)
- CTxIn(COutPoint(0632bea470, 1), scriptSig=3044022075cc5262848c49d5)
- CTxIn(COutPoint(74602cfeb5, 3), scriptSig=3045022100861fca4e934be9)
- CTxOut(nValue=0.00005678, scriptPubKey=1 04e4967e86ff8ee6c643c81cd236)
- CTxOut(nValue=0.00005678, scriptPubKey=OP_DUP OP_HASH160 dd84a40b878d)
- CTxOut(nValue=0.01983533, scriptPubKey=OP_DUP OP_HASH160 dd84a40ba1d6)
- CTxOut(nValue=0.00005678, scriptPubKey=OP_DUP OP_HASH160 946cb2e08075)
- ; nFeeRet = 10000, line 2523, file: mastercore.cpp
- 7a06ef1bb62230b04f4b7839f3b677397629cd433c03a0534d7ba57500efec1f
- Here is the send on Masterchest for verification via a different codebase:
- https://masterchest.info/lookuptx.aspx?txid=7a06ef1bb62230b04f4b7839f3b677397629cd433c03a0534d7ba57500efec1f
- -------------------------------------------------------------------------------------------------------------
- An example of the getbalance_MP RPC call to view the balance for a given address and currency:
- #src/mastercored getbalance_MP 1MCHESTxYkPSLoJ57WBQot7vz3xkNahkcb 1
- 0.01078211
- -------------------------------------------------------------------------------------------------------------
- An example of the gettransaction_MP RPC call on a simple send transaction:
- #src/mastercored gettransaction_MP 0632bea470138ff947bc1e0886156136b6abcc011c253e027dc9134e68ce1dd4
- {
- "txid" : "0632bea470138ff947bc1e0886156136b6abcc011c253e027dc9134e68ce1dd4",
- "sendingaddress" : "1MCHESTbJhJK27Ygqj4qKkx4Z4ZxhnP826",
- "referenceaddress" : "1MCHESTxYkPSLoJ57WBQot7vz3xkNahkcb",
- "direction" : "out",
- "confirmations" : 2862,
- "fee" : -0.00010000,
- "blocktime" : 1401845110,
- "blockindex" : 726,
- "type" : "Simple Send",
- "currency" : 1,
- "divisible" : true,
- "amount" : 0.01000000,
- "valid" : true
- }
- -------------------------------------------------------------------------------------------------------------
- An example of the gettransaction_MP RPC call on a DEx accept offer transaction:
- #src/mastercored gettransaction_MP a60de592aeb1bf645453eab4d8bbdd67578ff8a8be4854bbebefe6a5d00463db
- {
- "txid" : "a60de592aeb1bf645453eab4d8bbdd67578ff8a8be4854bbebefe6a5d00463db",
- "sendingaddress" : "1E3W9SFbWiaFMQAmiELDRn1W6MuibHj1EY",
- "referenceaddress" : "1MCHESTxYkPSLoJ57WBQot7vz3xkNahkcb",
- "direction" : "in",
- "confirmations" : 16329,
- "fee" : 0.00000000,
- "blocktime" : 1394867325,
- "blockindex" : 450,
- "type" : "DEx Accept Offer",
- "currency" : 1,
- "divisible" : true,
- "amount" : 0.00500000,
- "valid" : true
- }
- -------------------------------------------------------------------------------------------------------------
- An example of the gettransaction_MP RPC call on a DEx sell offer transaction:
- #src/mastercored gettransaction_MP 5c68cc6ea5bdebb4d69c12d042ac8406b3781ca17e3330e5adcb08bae90b8057
- {
- "txid" : "5c68cc6ea5bdebb4d69c12d042ac8406b3781ca17e3330e5adcb08bae90b8057",
- "sendingaddress" : "1MCHESTxYkPSLoJ57WBQot7vz3xkNahkcb",
- "direction" : "out",
- "confirmations" : 16332,
- "fee" : -0.00011000,
- "blocktime" : 1394865512,
- "blockindex" : 233,
- "type" : "DEx Sell Offer",
- "currency" : 1,
- "divisible" : true,
- "amount" : 0.00500000,
- "feerequired" : 0.00010000,
- "timelimit" : 6,
- "subaction" : "New",
- "bitcoindesired" : 0.00012500,
- "valid" : true
- }
- -------------------------------------------------------------------------------------------------------------
- An example of the listtransactions_MP RPC call to list the last five transactions for all addresses in wallet
- #src/mastercored listtransactions_MP "*" 5
- [
- {
- "txid" : "a60de592aeb1bf645453eab4d8bbdd67578ff8a8be4854bbebefe6a5d00463db",
- "address" : "1MCHESTxYkPSLoJ57WBQot7vz3xkNahkcb",
- "direction" : "in",
- "confirmations" : 16329,
- "blocktime" : 1394867325,
- "blockindex" : 450,
- "type" : "DEx Accept Offer",
- "currency" : 1,
- "divisible" : true,
- "amount" : 0.00500000,
- "valid" : true
- },
- {
- "txid" : "f8551486d02dd94fbd6820d5136af5734ee45db3f6d54a867f963d745ef6577a",
- "address" : "1MCHESTxYkPSLoJ57WBQot7vz3xkNahkcb",
- "direction" : "out",
- "confirmations" : 15597,
- "blocktime" : 1395264117,
- "blockindex" : 54,
- "type" : "Simple Send",
- "currency" : 0,
- "divisible" : true,
- "amount" : 0.00000000,
- "valid" : true
- },
- {
- "txid" : "6a3fae6614e481d08442b3d3deefd62c6cdc71b93ddcb74d9143ccbae1fdd8f3",
- "address" : "1MCHESTxYkPSLoJ57WBQot7vz3xkNahkcb",
- "direction" : "in",
- "confirmations" : 15270,
- "blocktime" : 1395422762,
- "blockindex" : 103,
- "type" : "DEx Accept Offer",
- "currency" : 1,
- "divisible" : true,
- "amount" : 0.00500000,
- "valid" : false
- },
- {
- "txid" : "f89697152f55ecf91d38abbb766b58a5be0ab26c6a27c699a47842908d134e98",
- "address" : "1MCHESTbJhJK27Ygqj4qKkx4Z4ZxhnP826",
- "direction" : "in",
- "confirmations" : 4168,
- "blocktime" : 1401156929,
- "blockindex" : 604,
- "type" : "Simple Send",
- "currency" : 1,
- "divisible" : true,
- "amount" : 0.04000000,
- "valid" : true
- },
- {
- "txid" : "0632bea470138ff947bc1e0886156136b6abcc011c253e027dc9134e68ce1dd4",
- "address" : "1MCHESTxYkPSLoJ57WBQot7vz3xkNahkcb",
- "direction" : "out",
- "confirmations" : 2862,
- "blocktime" : 1401845110,
- "blockindex" : 726,
- "type" : "Simple Send",
- "currency" : 1,
- "divisible" : true,
- "amount" : 0.01000000,
- "valid" : true
- }
- ]
- -------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement