V0.14.0 rpc chainlock param (#115)

* RPC - Add chainlock param to getrawtransaction and gettransaction

* RPC - Add chainlock param to listtransactions  - Also removes unused bip125-replaceable

* RPC - Add chainlock param to getblock

* RPC - Update getblock - add cbTx

* RPC - Update listsinceblock
 - Example updated with chainlock param
 - Removed bip125-replaceable param
This commit is contained in:
thephez 2019-04-08 12:03:33 -04:00
parent 865990cd4b
commit b0c8a4695a
8 changed files with 227 additions and 186 deletions

View file

@ -113,7 +113,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
{% autocrossref %} {% autocrossref %}
* [GetBestBlockHash][rpc getbestblockhash]: {{summary_getBestBlockHash}} * [GetBestBlockHash][rpc getbestblockhash]: {{summary_getBestBlockHash}}
* [GetBlock][rpc getblock]: {{summary_getBlock}} {{DASH_UPDATED0_13_0}} * [GetBlock][rpc getblock]: {{summary_getBlock}} {{DASH_UPDATED0_14_0}}
* [GetBlockChainInfo][rpc getblockchaininfo]: {{summary_getBlockChainInfo}} {{DASH_UPDATED0_13_0}} {{UPDATED0_12_1}} * [GetBlockChainInfo][rpc getblockchaininfo]: {{summary_getBlockChainInfo}} {{DASH_UPDATED0_13_0}} {{UPDATED0_12_1}}
* [GetBlockCount][rpc getblockcount]: {{summary_getBlockCount}} * [GetBlockCount][rpc getblockcount]: {{summary_getBlockCount}}
* [GetBlockHash][rpc getblockhash]: {{summary_getBlockHash}} * [GetBlockHash][rpc getblockhash]: {{summary_getBlockHash}}
@ -239,7 +239,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
* [DecodeRawTransaction][rpc decoderawtransaction]: {{summary_decodeRawTransaction}} {{UPDATED0_13_0}} * [DecodeRawTransaction][rpc decoderawtransaction]: {{summary_decodeRawTransaction}} {{UPDATED0_13_0}}
* [DecodeScript][rpc decodescript]: {{summary_decodeScript}} * [DecodeScript][rpc decodescript]: {{summary_decodeScript}}
* [FundRawTransaction][rpc fundrawtransaction]: {{summary_fundRawTransaction}} {{DASH_UPDATED0_12_3}} {{UPDATED0_14_0}} * [FundRawTransaction][rpc fundrawtransaction]: {{summary_fundRawTransaction}} {{DASH_UPDATED0_12_3}} {{UPDATED0_14_0}}
* [GetRawTransaction][rpc getrawtransaction]: {{summary_getRawTransaction}} {{DASH_UPDATED0_13_0}} {{UPDATED0_14_0}} * [GetRawTransaction][rpc getrawtransaction]: {{summary_getRawTransaction}} {{DASH_UPDATED0_14_0}}
* [SendRawTransaction][rpc sendrawtransaction]: {{summary_sendRawTransaction}} * [SendRawTransaction][rpc sendrawtransaction]: {{summary_sendRawTransaction}}
* [SignRawTransaction][rpc signrawtransaction]: {{summary_signRawTransaction}} * [SignRawTransaction][rpc signrawtransaction]: {{summary_signRawTransaction}}
@ -286,7 +286,7 @@ default.
* [GetRawChangeAddress][rpc getrawchangeaddress]: {{summary_getRawChangeAddress}} * [GetRawChangeAddress][rpc getrawchangeaddress]: {{summary_getRawChangeAddress}}
* [GetReceivedByAccount][rpc getreceivedbyaccount]: {{summary_getReceivedByAccount}} {{DASH_UPDATED0_13_0}} {{DEPRECATED}} * [GetReceivedByAccount][rpc getreceivedbyaccount]: {{summary_getReceivedByAccount}} {{DASH_UPDATED0_13_0}} {{DEPRECATED}}
* [GetReceivedByAddress][rpc getreceivedbyaddress]: {{summary_getReceivedByAddress}} {{DASH_UPDATED0_13_0}} * [GetReceivedByAddress][rpc getreceivedbyaddress]: {{summary_getReceivedByAddress}} {{DASH_UPDATED0_13_0}}
* [GetTransaction][rpc gettransaction]: {{summary_getTransaction}} {{UPDATED0_12_0}} * [GetTransaction][rpc gettransaction]: {{summary_getTransaction}} {{DASH_UPDATED0_14_0}}
* [GetUnconfirmedBalance][rpc getunconfirmedbalance]: {{summary_getUnconfirmedBalance}} * [GetUnconfirmedBalance][rpc getunconfirmedbalance]: {{summary_getUnconfirmedBalance}}
* [GetWalletInfo][rpc getwalletinfo]: {{summary_getWalletInfo}} {{DASH_UPDATED0_12_3}} * [GetWalletInfo][rpc getwalletinfo]: {{summary_getWalletInfo}} {{DASH_UPDATED0_12_3}}
* [ImportAddress][rpc importaddress]: {{summary_importAddress}} * [ImportAddress][rpc importaddress]: {{summary_importAddress}}
@ -305,8 +305,8 @@ default.
* [ListLockUnspent][rpc listlockunspent]: {{summary_listLockUnspent}} * [ListLockUnspent][rpc listlockunspent]: {{summary_listLockUnspent}}
* [ListReceivedByAccount][rpc listreceivedbyaccount]: {{summary_listReceivedByAccount}} {{DASH_UPDATED0_13_0}} {{DEPRECATED}} * [ListReceivedByAccount][rpc listreceivedbyaccount]: {{summary_listReceivedByAccount}} {{DASH_UPDATED0_13_0}} {{DEPRECATED}}
* [ListReceivedByAddress][rpc listreceivedbyaddress]: {{summary_listReceivedByAddress}} {{DASH_UPDATED0_13_0}} * [ListReceivedByAddress][rpc listreceivedbyaddress]: {{summary_listReceivedByAddress}} {{DASH_UPDATED0_13_0}}
* [ListSinceBlock][rpc listsinceblock]: {{summary_listSinceBlock}} * [ListSinceBlock][rpc listsinceblock]: {{summary_listSinceBlock}} {{DASH_UPDATED0_14_0}}
* [ListTransactions][rpc listtransactions]: {{summary_listTransactions}} {{UPDATED0_12_1}} * [ListTransactions][rpc listtransactions]: {{summary_listTransactions}} {{DASH_UPDATED0_14_0}}
* [ListUnspent][rpc listunspent]: {{summary_listUnspent}} {{DASH_UPDATED0_12_3}} {{UPDATED0_13_0}} * [ListUnspent][rpc listunspent]: {{summary_listUnspent}} {{DASH_UPDATED0_12_3}} {{UPDATED0_13_0}}
* [LockUnspent][rpc lockunspent]: {{summary_lockUnspent}} * [LockUnspent][rpc lockunspent]: {{summary_lockUnspent}}
* [Move][rpc move]: {{summary_move}} {{DEPRECATED}} * [Move][rpc move]: {{summary_move}} {{DEPRECATED}}

View file

@ -3,6 +3,7 @@ This file is licensed under the MIT License (MIT) available on
http://opensource.org/licenses/MIT. http://opensource.org/licenses/MIT.
{% endcomment %} {% endcomment %}
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getblock.md" %} {% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getblock.md" %}
<!--__-->
##### GetBlock ##### GetBlock
{% include helpers/subhead-links.md %} {% include helpers/subhead-links.md %}
@ -96,6 +97,26 @@ The `getblock` RPC {{summary_getBlock}}
p: "Required<br>(1 or more)" p: "Required<br>(1 or more)"
d: "The TXID of a transaction in this block, encoded as hex in RPC byte order" d: "The TXID of a transaction in this block, encoded as hex in RPC byte order"
- n: "→<br>`cbTx`"
t: "object"
p: "Required<br>(exactly 1)"
d: "Coinbase special transaction details"
- n: "→ →<br>`version`"
t: "number (int)"
p: "Required<br>(exactly 1)"
d: "The version of the Coinbase special transaction (CbTx)"
- n: "→ →<br>`height`"
t: "number (int)"
p: "Required<br>(exactly 1)"
d: "The height of this block on its block chain"
- n: "→ →<br>`merkleRootMNList`"
t: "string (hex)"
p: "Required<br>(exactly 1)"
d: "The merkle root for the masternode list"
- n: "→<br>`time`" - n: "→<br>`time`"
t: "number (int)" t: "number (int)"
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
@ -191,6 +212,26 @@ The `getblock` RPC {{summary_getBlock}}
{{INCLUDE_DECODE_RAW_TRANSACTION}} {{INCLUDE_DECODE_RAW_TRANSACTION}}
- n: "→<br>`cbTx`"
t: "object"
p: "Required<br>(exactly 1)"
d: "Coinbase special transaction details"
- n: "→ →<br>`version`"
t: "number (int)"
p: "Required<br>(exactly 1)"
d: "The version of the Coinbase special transaction (CbTx)"
- n: "→ →<br>`height`"
t: "number (int)"
p: "Required<br>(exactly 1)"
d: "The height of this block on its block chain"
- n: "→ →<br>`merkleRootMNList`"
t: "string (hex)"
p: "Required<br>(exactly 1)"
d: "The merkle root for the masternode list"
- n: "→<br>`time`" - n: "→<br>`time`"
t: "number (int)" t: "number (int)"
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
@ -231,61 +272,72 @@ The `getblock` RPC {{summary_getBlock}}
p: "Optional<br>(0 or 1)" p: "Optional<br>(0 or 1)"
d: "The hash of the next block on the best block chain, if known, encoded as hex in RPC byte order" d: "The hash of the next block on the best block chain, if known, encoded as hex in RPC byte order"
- n: "<br>`chainlock`"
t: "bool"
p: "Required<br>(exactly 1)"
d: "*Added in Dash Core 0.14.0*<br><br>If set to `true`, this transaction is in a block that is locked (not susceptible to a chain re-org)"
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.13.0* *Example from Dash Core 0.14.0*
Get a block in raw hex: Get a block in raw hex:
{% highlight bash %} {% highlight bash %}
dash-cli -testnet getblock \ dash-cli -testnet getblock \
00000012e877c56af0b33d79aae888b5cb40b47809b4bee764e8fea7a9033994 \ 0000000005fdd3a647d4048f183e639310885fab7983b8e7b5079729e065d91f \
0 0
{% endhighlight %} {% endhighlight %}
Result (wrapped): Result (wrapped):
{% highlight text %} {% highlight text %}
01000020d2fb795188566bd52deaa8e62de6f59c2833e842f9f6a48cea026689\ 00000020354559625d75e59743370290291a5c7df72d1af739c3e2ecf7483314\
04000000c7274c45e043e5953f2d62a1938818b513d8fd4c9f99c2c1541d1449\ 000000002ba12397f0ae5884e623004a5e790d7c608fa013630656e61057c0e4\
7f368602c2d8175c417b4d1d0007a96501010000000100000000000000000000\ fc67a656031f9d5c3e6f221c890a5ec001030005000100000000000000000000\
00000000000000000000000000000000000000000000ffffffff1202a91a0e2f\ 00000000000000000000000000000000000000000000ffffffff4c03bc0d0104\
5032506f6f6c2d74444153482fffffffff0404e65a96010000001976a9144f79\ 031f9d5c08fabe6d6d736170747365743a7265737574736574000c870f000008\
c383bc5d3e9d4d81b98f87337cedfa78953688ac40c3609a010000001976a914\ 308d3b4900000019730100000000000000580000004f0000000d2f6e6f646553\
f627e64c0453f74d879f6e6a37709189af0298da88ac3cdd0504000000001976\ 74726174756d2f000000000240230e43000000001976a914cb594917ad4e5849\
a914badadfdebaa6d015a0299f23fbc1fcbdd72ba96f88ac0000000000000000\ 688ec63f29a0f7f3badb5da688ac40230e43000000001976a914477a52436b94\
2a6a285fb560df18bc5145faa0860841df9daf30dc544c7b0cdb52ff28c06fa3\ 4f3e9223ac8404a7717d4176fa5388ac00000000260100bc0d01001dd9fb7d61\
b33924000000000100000000000000 1bfd2c05c7a508085d2b35053a45fe67c40c0e43be7cd87a7c9b83
{% endhighlight %} {% endhighlight %}
Get the same block in JSON: Get the same block in JSON:
{% highlight bash %} {% highlight bash %}
dash-cli -testnet getblock \ dash-cli -testnet getblock \
00000012e877c56af0b33d79aae888b5cb40b47809b4bee764e8fea7a9033994 0000000005fdd3a647d4048f183e639310885fab7983b8e7b5079729e065d91f
{% endhighlight %} {% endhighlight %}
Result: Result:
{% highlight json %} {% highlight json %}
{ {
"hash": "00000012e877c56af0b33d79aae888b5cb40b47809b4bee764e8fea7a9033994", "hash": "0000000005fdd3a647d4048f183e639310885fab7983b8e7b5079729e065d91f",
"confirmations": 1, "confirmations": 1,
"size": 303, "size": 315,
"height": 6825, "height": 69052,
"version": 536870913, "version": 536870912,
"versionHex": "20000001", "versionHex": "20000000",
"merkleroot": "0286367f49141d54c1c2999f4cfdd813b5188893a1622d3f95e543e0454c27c7", "merkleroot": "56a667fce4c05710e656066313a08f607c0d795e4a0023e68458aef09723a12b",
"tx": [ "tx": [
"0286367f49141d54c1c2999f4cfdd813b5188893a1622d3f95e543e0454c27c7" "56a667fce4c05710e656066313a08f607c0d795e4a0023e68458aef09723a12b"
], ],
"time": 1545066690, "cbTx": {
"mediantime": 1545065992, "version": 1,
"nonce": 1705576192, "height": 69052,
"bits": "1d4d7b41", "merkleRootMNList": "839b7c7ad87cbe430e0cc467fe453a05352b5d0808a5c7052cfd1b617dfbd91d"
"difficulty": 0.01290611629979371, },
"chainwork": "00000000000000000000000000000000000000000000000000000647104aa574", "time": 1553800963,
"previousblockhash": "00000004896602ea8ca4f6f942e833289cf5e62de6a8ea2dd56b56885179fbd2" "mediantime": 1553800156,
"nonce": 3227388553,
"bits": "1c226f3e",
"difficulty": 7.434282417439254,
"chainwork": "000000000000000000000000000000000000000000000000003dfe3d34685d0a",
"previousblockhash": "00000000143348f7ece2c339f71a2df77d5c1a299002374397e5755d62594535",
"chainlock": false
} }
{% endhighlight %} {% endhighlight %}
@ -293,97 +345,87 @@ Get the same block in JSON with transaction details:
{% highlight bash %} {% highlight bash %}
dash-cli -testnet getblock \ dash-cli -testnet getblock \
00000012e877c56af0b33d79aae888b5cb40b47809b4bee764e8fea7a9033994 2 0000000005fdd3a647d4048f183e639310885fab7983b8e7b5079729e065d91f 2
{% endhighlight %} {% endhighlight %}
Result: Result:
{% highlight json %} {% highlight json %}
{ {
"hash": "00000012e877c56af0b33d79aae888b5cb40b47809b4bee764e8fea7a9033994", "hash": "0000000005fdd3a647d4048f183e639310885fab7983b8e7b5079729e065d91f",
"confirmations": 1, "confirmations": 1,
"size": 303, "size": 315,
"height": 6825, "height": 69052,
"version": 536870913, "version": 536870912,
"versionHex": "20000001", "versionHex": "20000000",
"merkleroot": "0286367f49141d54c1c2999f4cfdd813b5188893a1622d3f95e543e0454c27c7", "merkleroot": "56a667fce4c05710e656066313a08f607c0d795e4a0023e68458aef09723a12b",
"tx": [ "tx": [
{ {
"txid": "0286367f49141d54c1c2999f4cfdd813b5188893a1622d3f95e543e0454c27c7", "txid": "56a667fce4c05710e656066313a08f607c0d795e4a0023e68458aef09723a12b",
"size": 222, "size": 234,
"version": 1, "version": 3,
"type": 0, "type": 5,
"locktime": 0, "locktime": 0,
"vin": [ "vin": [
{ {
"coinbase": "02a91a0e2f5032506f6f6c2d74444153482f", "coinbase": "03bc0d0104031f9d5c08fabe6d6d736170747365743a7265737574736574000c870f000008308d3b4900000019730100000000000000580000004f0000000d2f6e6f64655374726174756d2f",
"sequence": 4294967295 "sequence": 0
} }
], ],
"vout": [ "vout": [
{ {
"value": 68.17506820, "value": 11.25000000,
"valueSat": 6817506820, "valueSat": 1125000000,
"n": 0, "n": 0,
"scriptPubKey": { "scriptPubKey": {
"asm": "OP_DUP OP_HASH160 4f79c383bc5d3e9d4d81b98f87337cedfa789536 OP_EQUALVERIFY OP_CHECKSIG", "asm": "OP_DUP OP_HASH160 cb594917ad4e5849688ec63f29a0f7f3badb5da6 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a9144f79c383bc5d3e9d4d81b98f87337cedfa78953688ac", "hex": "76a914cb594917ad4e5849688ec63f29a0f7f3badb5da688ac",
"reqSigs": 1, "reqSigs": 1,
"type": "pubkeyhash", "type": "pubkeyhash",
"addresses": [ "addresses": [
"yTZg6eePKxbJZyoaC93bVrTUq5vjhFrbst" "yereyozxENB9jbhqpbg1coE5c39ExqLSaG"
] ]
} }
}, },
{ {
"value": 68.85000000, "value": 11.25000000,
"valueSat": 6885000000, "valueSat": 1125000000,
"n": 1, "n": 1,
"scriptPubKey": { "scriptPubKey": {
"asm": "OP_DUP OP_HASH160 f627e64c0453f74d879f6e6a37709189af0298da OP_EQUALVERIFY OP_CHECKSIG", "asm": "OP_DUP OP_HASH160 477a52436b944f3e9223ac8404a7717d4176fa53 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914f627e64c0453f74d879f6e6a37709189af0298da88ac", "hex": "76a914477a52436b944f3e9223ac8404a7717d4176fa5388ac",
"reqSigs": 1, "reqSigs": 1,
"type": "pubkeyhash", "type": "pubkeyhash",
"addresses": [ "addresses": [
"yikzsfaaQ2eZ1RpVUpf1EvedzgGdJD17dC" "ySqPMrmGiB5zu7TYqgdaviEsqixPJc9hNQ"
] ]
} }
},
{
"value": 0.67493180,
"valueSat": 67493180,
"n": 2,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 badadfdebaa6d015a0299f23fbc1fcbdd72ba96f OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914badadfdebaa6d015a0299f23fbc1fcbdd72ba96f88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"ydMSjYqwv4xTossPJ1xndTxwS1Hho9DmuM"
]
}
},
{
"value": 0.00000000,
"valueSat": 0,
"n": 3,
"scriptPubKey": {
"asm": "OP_RETURN 5fb560df18bc5145faa0860841df9daf30dc544c7b0cdb52ff28c06fa3b339240000000001000000",
"hex": "6a285fb560df18bc5145faa0860841df9daf30dc544c7b0cdb52ff28c06fa3b339240000000001000000",
"type": "nulldata"
}
} }
], ],
"instantlock": false "extraPayloadSize": 38,
"extraPayload": "0100bc0d01001dd9fb7d611bfd2c05c7a508085d2b35053a45fe67c40c0e43be7cd87a7c9b83",
"cbTx": {
"version": 1,
"height": 69052,
"merkleRootMNList": "839b7c7ad87cbe430e0cc467fe453a05352b5d0808a5c7052cfd1b617dfbd91d"
},
"instantlock": false,
"chainlock": false
} }
], ],
"time": 1545066690, "cbTx": {
"mediantime": 1545065992, "version": 1,
"nonce": 1705576192, "height": 69052,
"bits": "1d4d7b41", "merkleRootMNList": "839b7c7ad87cbe430e0cc467fe453a05352b5d0808a5c7052cfd1b617dfbd91d"
"difficulty": 0.01290611629979371, },
"chainwork": "00000000000000000000000000000000000000000000000000000647104aa574", "time": 1553800963,
"previousblockhash": "00000004896602ea8ca4f6f942e833289cf5e62de6a8ea2dd56b56885179fbd2" "mediantime": 1553800156,
"nonce": 3227388553,
"bits": "1c226f3e",
"difficulty": 7.434282417439254,
"chainwork": "000000000000000000000000000000000000000000000000003dfe3d34685d0a",
"previousblockhash": "00000000143348f7ece2c339f71a2df77d5c1a299002374397e5755d62594535",
"chainlock": false
} }
{% endhighlight %} {% endhighlight %}

View file

@ -100,9 +100,14 @@ deprecated.
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "If set to `true`, this transaction is locked" d: "If set to `true`, this transaction is locked"
- n: "<br>`chainlock`"
t: "bool"
p: "Required<br>(exactly 1)"
d: "*Added in Dash Core 0.14.0*<br><br>If set to `true`, this transaction is in a block that is locked (not susceptible to a chain re-org)"
{% enditemplate %} {% enditemplate %}
*Examples from Dash Core 0.13.0* *Examples from Dash Core 0.14.0*
A classical transaction in serialized transaction format: A classical transaction in serialized transaction format:
@ -188,6 +193,7 @@ Result:
"time": 1546278750, "time": 1546278750,
"blocktime": 1546278750, "blocktime": 1546278750,
"instantlock": true "instantlock": true
"chainlock": false
} }
{% endhighlight %} {% endhighlight %}

View file

@ -52,11 +52,6 @@ The `gettransaction` RPC {{summary_getTransaction}}
p: "Optional<br>(0 or 1)" p: "Optional<br>(0 or 1)"
d: "If an outgoing transaction, this is the fee paid by the transaction reported as negative dash" d: "If an outgoing transaction, this is the fee paid by the transaction reported as negative dash"
- n: "→<br>`instantlock`"
t: "bool"
p: "Required<br>(exactly 1)"
d: "Current transaction lock state"
{{INCLUDE_F_LIST_TRANSACTIONS_F_FULL}} {{INCLUDE_F_LIST_TRANSACTIONS_F_FULL}}
- n: "→<br>`DS`" - n: "→<br>`DS`"
@ -94,6 +89,11 @@ The `gettransaction` RPC {{summary_getTransaction}}
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "A negative dash amount if sending payment; a positive dash amount if receiving payment (including coinbases)" d: "A negative dash amount if sending payment; a positive dash amount if receiving payment (including coinbases)"
- n: "→ →<br>`label`"
t: "string"
p: "Optional<br>(0 or 1)"
d: "An optional comment for the address/transaction"
- n: "→ →<br>`vout`" - n: "→ →<br>`vout`"
t: "number (int)" t: "number (int)"
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
@ -116,52 +116,44 @@ The `gettransaction` RPC {{summary_getTransaction}}
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.12.2* *Example from Dash Core 0.14.0*
{% highlight bash %} {% highlight bash %}
dash-cli -testnet gettransaction \ dash-cli -testnet gettransaction \
345d5f708b047b145f6a40a4e1e36c76648611cd009bd073e607c8ddf47bb797 c099c882745ad150e9b2a55ef5818683c7ef597e1e5fc20856c67eabc3778ccc
{% endhighlight %} {% endhighlight %}
Result: Result:
{% highlight json %} {% highlight json %}
{ {
"amount": 0.00000000, "amount": -50.00000000,
"fee": -0.00010000, "fee": -0.00030000,
"confirmations": 20, "confirmations": 3064,
"instantlock": false, "instantlock": false,
"chainlock": false,
"blockhash": "00000a01007be2912c3123085534b58d341cb5e5980b967e8dcc021089487a1e",
"blockindex": 1,
"blocktime": 1553290594,
"trusted": true, "trusted": true,
"txid": "345d5f708b047b145f6a40a4e1e36c76648611cd009bd073e607c8ddf47bb797", "txid": "c099c882745ad150e9b2a55ef5818683c7ef597e1e5fc20856c67eabc3778ccc",
"walletconflicts": [ "walletconflicts": [
], ],
"time": 1511967821, "time": 1553290584,
"timereceived": 1511967821, "timereceived": 1553290584,
"bip125-replaceable": "no",
"DS": "1",
"details": [ "details": [
{ {
"account": "", "account": "",
"address": "ybTSbNqB7nG4ZVbHyati6GbfFz5w7tDnHf", "address": "ycCsAUKsjdmoP4qAXiS1cjYA4ixM48zJWe",
"category": "privatesend", "category": "send",
"amount": -10.00000000, "amount": -50.00000000,
"label": "PS", "label": "Electrum",
"vout": 0, "vout": 1,
"fee": -0.00010000, "fee": -0.00030000,
"abandoned": false "abandoned": false
},
{
"account": "PS",
"address": "ybTSbNqB7nG4ZVbHyati6GbfFz5w7tDnHf",
"category": "receive",
"amount": 10.00000000,
"label": "PS",
"vout": 0
} }
], ],
"hex": "010000000156d338508686982770a101c9fd41ce8b2c6ff4eb17dac6b1e7a32dfc5d2ae6e9030000006b4830450221008e8bf68440818d2b2fe8bcc2447d3b455f4e27864dae3f2bc62d2c8d1fdadaad0220390a0810f7f75436a7ebb0bc5c5a5e377b2330e1395f42b5f96d249ac9705ffc012103f4398f7e93dcc64a24191dbae57ef1ccbfcbd867f39a714020e66cf5b10050c4feffffff0100ca9a3b000000001976a914a60d00463c9eed290555e8f719333fc6b21c636088ac89850000" "hex": "0200000003aac865dba0e98fe32533df6bc3eaac160d04bb02966584fb61fc8d7788e09537010000006a47304402202d537257f23ab42b3e14f2ab533f39bb4586aa1b29a1f833f718a59493c8a601022019c6c156c20e66ef256519592b3c977b64d417c94aea4dca20cf18522a138993012103c67d86944315838aea7ec80d390b5d09b91b62483370d4979da5ccf7a7df77a9feffffff47833a270d2e2bac47bc5dc0df576c3a68b01bedbc89692060ac4113a6f9cb67010000006a4730440220442c19a913b10edc533bf63310f5294d6d91eec0eb9c510a3c6b0f33333f27320220501d5093ecdf603b8af9734e21d5de4710c8500309bfa4acdda243a294442b2c012103c67d86944315838aea7ec80d390b5d09b91b62483370d4979da5ccf7a7df77a9feffffffdcfd2d0fb30d79ffeadab8832e65be2310b67043ff3d74deac9a9cb825acda67000000006b483045022100cae8c025d3bec82903f356a5ec38d78a141447b6562e3aceac901f5fcc6f8567022076407835937514d6690c81c0c3b97f92d2b0ae9749249affaf539ead825692f4012102d6be44ab930ff67f084fbaf47a38b539b8d5da65c010952a972c9e524b6009dffeffffff0204fe2b00000000001976a914e3b0093477c2f629430d0a7b5813fe8b0153b0fd88ac00f2052a010000001976a914ae4365dedb1836ba215b9149602e0787a23376d288ac42010100"
} }
{% endhighlight %} {% endhighlight %}
*See also* *See also*

View file

@ -71,7 +71,7 @@ The `listsinceblock` RPC {{summary_listSinceBlock}}
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.12.2* *Example from Dash Core 0.14.0*
Get all transactions since a particular block (including watch-only Get all transactions since a particular block (including watch-only
transactions) and the header hash of the sixth most recent block. transactions) and the header hash of the sixth most recent block.
@ -89,48 +89,43 @@ Result (edited to show only two payments):
"transactions": [ "transactions": [
{ {
"account": "", "account": "",
"address": "yfCjqf9F7oNGD1sRqta2rNpCXSQ9dknDf5", "address": "yLXe1NwXmhZbtM6drTXbWFvtEqpsJZkKd2",
"category": "send", "category": "send",
"amount": -0.01000010, "amount": -1.00000000,
"vout": 7, "label": "Receiving",
"fee": 0.05000050, "vout": 0,
"confirmations": 95, "fee": -0.00000226,
"instantlock": false, "confirmations": 0,
"blockhash": "0000000002aa705754c6ab4e15cf2183a1d174e61c080f64eb469c458669144b", "instantlock": true,
"blockindex": 1, "chainlock": false,
"blocktime": 1511972930, "trusted": true,
"txid": "52e34eec71a4cf95c043b76567f55cec1bc293c444810d454a2d05f2a819b5ed", "txid": "cc2e6c49faae395d79cfc91d188881e479f544c220e4dfee016889cd53b32645",
"walletconflicts": [ "walletconflicts": [
], ],
"time": 1511972930, "time": 1554734925,
"timereceived": 1511974218, "timereceived": 1554734925,
"bip125-replaceable": "no",
"abandoned": false "abandoned": false
}, },
{ {
"account": "", "account": "",
"address": "yi2U4Cx2QH33LdNwk2c2oLABWzEZWhYU9k", "address": "yLXe1NwXmhZbtM6drTXbWFvtEqpsJZkKd2",
"category": "send", "category": "receive",
"amount": -0.01000010, "amount": 1.00000000,
"vout": 8, "label": "Receiving",
"fee": 0.05000050, "vout": 0,
"confirmations": 95, "confirmations": 0,
"instantlock": false, "instantlock": true,
"blockhash": "0000000002aa705754c6ab4e15cf2183a1d174e61c080f64eb469c458669144b", "chainlock": false,
"blockindex": 1, "trusted": true,
"blocktime": 1511972930, "txid": "cc2e6c49faae395d79cfc91d188881e479f544c220e4dfee016889cd53b32645",
"txid": "52e34eec71a4cf95c043b76567f55cec1bc293c444810d454a2d05f2a819b5ed",
"walletconflicts": [ "walletconflicts": [
], ],
"time": 1511972930, "time": 1554734925,
"timereceived": 1511974218, "timereceived": 1554734925
"bip125-replaceable": "no",
"abandoned": false
} }
], ],
"lastblock": "000000000dba5583e3fc5c2df06b478e922702f53a1476aac8eb4322f648ccea" "lastblock": "0000000006be841cd8534b02733d833ad9dd7634ab0897a7e5cd92c574a529a3"
} }
{% endhighlight %} {% endhighlight %}
*See also* *See also*

View file

@ -109,16 +109,21 @@ The `listtransactions` RPC {{summary_listTransactions}}
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "Current transaction lock state" d: "Current transaction lock state"
- n: "→ →<br>`trusted`" - n: "<br>`chainlock`"
t: "bool" t: "bool"
p: "Optional<br>(0 or 1)" p: "Required<br>(exactly 1)"
d: "Indicates whether we consider the outputs of this unconfirmed transaction safe to spend. Only returned for unconfirmed transactions" d: "*Added in Dash Core 0.14.0*<br><br>If set to `true`, this transaction is in a block that is locked (not susceptible to a chain re-org)"
- n: "→ →<br>`generated`" - n: "→ →<br>`generated`"
t: "bool" t: "bool"
p: "Optional<br>(0 or 1)" p: "Optional<br>(0 or 1)"
d: "Set to `true` if the transaction is a coinbase. Not returned for regular transactions or *move* category payments" d: "Set to `true` if the transaction is a coinbase. Not returned for regular transactions or *move* category payments"
- n: "→ →<br>`trusted`"
t: "bool"
p: "Optional<br>(0 or 1)"
d: "Indicates whether we consider the outputs of this unconfirmed transaction safe to spend. Only returned for unconfirmed transactions"
- n: "→ →<br>`blockhash`" - n: "→ →<br>`blockhash`"
t: "string (hex)" t: "string (hex)"
p: "Optional<br>(0 or 1)" p: "Optional<br>(0 or 1)"
@ -174,11 +179,6 @@ The `listtransactions` RPC {{summary_listTransactions}}
p: "Optional<br>(0 or 1)" p: "Optional<br>(0 or 1)"
d: "This is the account the dash were moved from or moved to, as indicated by a negative or positive *amount* field in this payment. Only returned by *move* category payments" d: "This is the account the dash were moved from or moved to, as indicated by a negative or positive *amount* field in this payment. Only returned by *move* category payments"
- n: "→ →<br>`bip125-replaceable`"
t: "string"
p: "Required<br>(exactly 1)"
d: "*Added in Bitcoin Core 0.12.0*<br><br>Indicates if a transaction is replaceable under BIP125:<br>`yes` replaceable<br>`no` not replaceable<br>`unknown` for unconfirmed transactions not in the mempool"
- n: "→ →<br>`abandoned`" - n: "→ →<br>`abandoned`"
t: "bool" t: "bool"
p: "Optional<br>(0 or 1)" p: "Optional<br>(0 or 1)"
@ -186,7 +186,7 @@ The `listtransactions` RPC {{summary_listTransactions}}
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.12.2* *Example from Dash Core 0.14.0*
List the most recent transaction from the main account including watch-only addresses. List the most recent transaction from the main account including watch-only addresses.
@ -199,24 +199,25 @@ Result:
{% highlight json %} {% highlight json %}
[ [
{ {
"account": "MN Setup", "account": "",
"address": "yY6AmGopsZS31wy1JLHR9P6AC6owFaXwuh", "address": "ySGKtDZ3qBHRqk7mHsdofShQkqMcAS7SYJ",
"category": "immature", "category": "send",
"amount": 11.25000000, "amount": -0.50000000,
"label": "MN Setup", "label": "",
"vout": 3, "vout": 1,
"confirmations": 20, "fee": -0.00040000,
"instantlock": false, "confirmations": 3,
"generated": true, "instantlock": true,
"blockhash": "000000000207e556193e19287d2e554a5f99e1ff7cb19367e8de8ad6bacc494e", "chainlock": false,
"blockindex": 0, "blockhash": "000000000327ff7785d799dde99949457ac231ef1d956a2287c2f7bb84d9738c",
"blocktime": 1511986957, "blockindex": 2,
"txid": "cd9d44cd87ffb784f9dac384bad7db55324d3f47724eb60e16b3de6a26175936", "blocktime": 1553798971,
"txid": "048aae3ad194f5398b67fc7029b26bf50d66ecc7d185fd6d26f8c6ec5a4ed1f9",
"walletconflicts": [ "walletconflicts": [
], ],
"time": 1511986957, "time": 1553798920,
"timereceived": 1511986982, "timereceived": 1553798920,
"bip125-replaceable": "no" "abandoned": false
} }
] ]
{% endhighlight %} {% endhighlight %}

View file

@ -48,6 +48,16 @@ http://opensource.org/licenses/MIT.
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "The number of confirmations the transaction has received. Will be `0` for unconfirmed and `-1` for conflicted" d: "The number of confirmations the transaction has received. Will be `0` for unconfirmed and `-1` for conflicted"
- n: "→<br>`instantlock`"
t: "bool"
p: "Required<br>(exactly 1)"
d: "Current transaction lock state"
- n: "<br>`chainlock`"
t: "bool"
p: "Required<br>(exactly 1)"
d: "*Added in Dash Core 0.14.0*<br><br>If set to `true`, this transaction is in a block that is locked (not susceptible to a chain re-org)"
- n: "{{DEPTH}}<br>`generated`" - n: "{{DEPTH}}<br>`generated`"
t: "bool" t: "bool"
p: "Optional<br>(0 or 1)" p: "Optional<br>(0 or 1)"
@ -93,11 +103,6 @@ http://opensource.org/licenses/MIT.
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "A Unix epoch time when the transaction was detected by the local node, or the time of the block on the local best block chain that included the transaction" d: "A Unix epoch time when the transaction was detected by the local node, or the time of the block on the local best block chain that included the transaction"
- n: "{{DEPTH}}<br>`bip125-replaceable`"
t: "string"
p: "Required<br>(exactly 1)"
d: "*Added in Bitcoin Core 0.12.0*<br><br>Indicates if a transaction is replaceable under BIP 125:<br>`yes` is replaceable<br>`no` not replaceable<br>`unknown` for unconfirmed transactions not in the mempool"
- n: "{{DEPTH}}<br>`comment`" - n: "{{DEPTH}}<br>`comment`"
t: "string" t: "string"
p: "Optional<br>(0 or 1)" p: "Optional<br>(0 or 1)"

View file

@ -71,7 +71,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
<td class="tg-b7b8">Blockchain</td> <td class="tg-b7b8">Blockchain</td>
<td class="tg-b7b8"><a href="#getblock">GetBlock</a></td> <td class="tg-b7b8"><a href="#getblock">GetBlock</a></td>
<td class="tg-dzk6">Y</td> <td class="tg-dzk6">Y</td>
<td class="tg-dzk6">Updated in 0.13.0.0</td> <td class="tg-dzk6">Updated in 0.14.0.0</td>
</tr> </tr>
<tr> <tr>
<td class="tg-yw4l">Blockchain</td> <td class="tg-yw4l">Blockchain</td>
@ -467,7 +467,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
<td class="tg-yw4l">Rawtransactions</td> <td class="tg-yw4l">Rawtransactions</td>
<td class="tg-yw4l"><a href="#getrawtransaction">GetRawTransaction</a></td> <td class="tg-yw4l"><a href="#getrawtransaction">GetRawTransaction</a></td>
<td class="tg-baqh">Y</td> <td class="tg-baqh">Y</td>
<td class="tg-baqh">Updated in 0.13.0.0</td> <td class="tg-baqh">Updated in 0.14.0.0</td>
</tr> </tr>
<tr> <tr>
<td class="tg-b7b8">Rawtransactions</td> <td class="tg-b7b8">Rawtransactions</td>
@ -653,7 +653,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
<td class="tg-yw4l">Wallet</td> <td class="tg-yw4l">Wallet</td>
<td class="tg-yw4l"><a href="#gettransaction">GetTransaction</a></td> <td class="tg-yw4l"><a href="#gettransaction">GetTransaction</a></td>
<td class="tg-baqh">Y</td> <td class="tg-baqh">Y</td>
<td class="tg-baqh"></td> <td class="tg-baqh">Updated in 0.14.0</td>
</tr> </tr>
<tr> <tr>
<td class="tg-b7b8">Wallet</td> <td class="tg-b7b8">Wallet</td>
@ -767,13 +767,13 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
<td class="tg-yw4l">Wallet</td> <td class="tg-yw4l">Wallet</td>
<td class="tg-yw4l"><a href="#listsinceblock">ListSinceBlock</a></td> <td class="tg-yw4l"><a href="#listsinceblock">ListSinceBlock</a></td>
<td class="tg-baqh">Y</td> <td class="tg-baqh">Y</td>
<td class="tg-baqh"></td> <td class="tg-baqh">Updated in 0.14.0</td>
</tr> </tr>
<tr> <tr>
<td class="tg-b7b8">Wallet</td> <td class="tg-b7b8">Wallet</td>
<td class="tg-b7b8"><a href="#listtransactions">ListTransactions</a></td> <td class="tg-b7b8"><a href="#listtransactions">ListTransactions</a></td>
<td class="tg-dzk6">Y</td> <td class="tg-dzk6">Y</td>
<td class="tg-dzk6"></td> <td class="tg-dzk6">Updated in 0.14.0</td>
</tr> </tr>
<tr> <tr>
<td class="tg-yw4l">Wallet</td> <td class="tg-yw4l">Wallet</td>