mirror of
https://github.com/seigler/dash-docs
synced 2025-07-26 17:26:12 +00:00
RPC - Update trigger deserialize example
- Add missing SigningMasternode field
This commit is contained in:
parent
e4d3c02d50
commit
7134362ff6
2 changed files with 20 additions and 31 deletions
|
@ -403,11 +403,6 @@ Result:
|
|||
p: "Required<br>(exactly 1)"
|
||||
d: "Array of governance objects"
|
||||
|
||||
- n: "→<br>`trigger`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Trigger object"
|
||||
|
||||
- n: "→ →<br>`event_block_height`"
|
||||
t: "int"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -435,38 +430,27 @@ Result:
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
*Example from Dash Core 0.14.0*
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet gobject deserialize 5b5b2274726967676572222c207b226576656e7\
|
||||
45f626c6f636b5f686569676874223a2031383435362c20227061796d656e745f616464726573\
|
||||
736573223a20227952465968665a4a4258567a3861696850365a7166714174374245316256644\
|
||||
676567c79544c795070554668696768355270787a72695a6362474c5972527836687959455022\
|
||||
2c20227061796d656e745f616d6f756e7473223a2022322e31323334353637387c322e3030303\
|
||||
030303030222c202270726f706f73616c5f686173686573223a20223632623161336564633938\
|
||||
37626432313134636439323263336339376166643039383339353534313862313730316330666\
|
||||
131353262616662386131313735667c3138376337353166653631336434386139623331316161\
|
||||
34383833383635666166396234336333623931333433333438326636636632343763313835656\
|
||||
13037222c202274797065223a20327d5d5d
|
||||
dash-cli -testnet gobject deserialize 7b226576656e745f626c6f636b5f68656967687\
|
||||
4223a203131393539322c20227061796d656e745f616464726573736573223a20227954686d6e\
|
||||
75565a316765516e79776f456147627079333362695435473573587a62222c20227061796d656\
|
||||
e745f616d6f756e7473223a2022312e3335393631393331222c202270726f706f73616c5f6861\
|
||||
73686573223a20223836333966636464653131626432373032373663396330333564366435346\
|
||||
3653962393138323465366466373532636164376464646331616532663734386435222c202274\
|
||||
797065223a20327d
|
||||
{% endhighlight %}
|
||||
|
||||
Result (wrapped):
|
||||
{% highlight json %}
|
||||
[
|
||||
[
|
||||
"trigger",
|
||||
{
|
||||
"event_block_height":18456,
|
||||
"payment_addresses":"yRFYhfZJBXVz8aihP6ZqfqAt7BE1bVdFvV\
|
||||
|yTLyPpUFhigh5RpxzriZcbGLYrRx6hyYEP",
|
||||
"payment_amounts":"2.12345678|2.00000000",
|
||||
"proposal_hashes":"62b1a3edc987bd2114cd922c3c97afd0983955418b1701c0fa\
|
||||
152bafb8a1175f|187c751fe613d48a9b311aa4883865faf9b43c3b913433482f6c\
|
||||
f247c185ea07",
|
||||
"event_block_height": 119592,
|
||||
"payment_addresses": "yThmnuVZ1geQnywoEaGbpy33biT5G5sXzb",
|
||||
"payment_amounts": "1.35961931",
|
||||
"proposal_hashes": "8639fcdde11bd270276c9c035d6d54ce9b91824e6df752cad7dddc1ae2f748d5",
|
||||
"type": 2
|
||||
}
|
||||
]
|
||||
]
|
||||
{% endhighlight %}
|
||||
|
||||
{% endautocrossref %}
|
||||
|
|
|
@ -395,6 +395,11 @@ NOT IN DASH
|
|||
p: "Required<br>(exactly 1)"
|
||||
d: "Object creation time as Unix epoch time"
|
||||
|
||||
- n: "→ →<br>`SigningMasternode`"
|
||||
t: "string (hex)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "Signing masternode's vin (only present in triggers)"
|
||||
|
||||
- n: "→ →<br>`AbsoluteYesCount`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue