DASH
POST
GET
Last updated on January 1, 1970
2 min read
Method gobject_prepare undefined ()
connect with JSON-RPC protocol
gobject_prepare
Method not allowed
prepares a governance object by signing and creating a collateraltransaction.
Parameters
method name
- string
None
parent-hash
- string (hex)
Hash of the parent object. Usually the root node which has a hash of 0
revision
- int
Object revision number
time
- int_64t
Create time (Unix epoch time)
data-hex
- string (hex)
Updated in Dash Core 0.14.0 to require all new proposals to use JSON serialization.
Object data (JSON object with governance details).
use-IS
- boolean
Optional
Deprecated and ignored since Dash Core 0.15.0.
outputHash
- string (hex)
Optional
The single output to submit the proposal fee from.
Added in Dash Core 0.13.0
outputIndex
- numeric
Optional
The output index (required if the outputHash parameter is provided)
Added in Dash Core 0.13.0
Request
curl --location --request POST 'https://dash.getblock.io/mainnet/'
--header 'x-api-key: YOUR-API-KEY'
--header 'Content-Type: application/json'
--data-raw '{"jsonrpc": "2.0",
"method": "gobject",
"params": ["prepare", null, null, null, null, null, null, null],
"id": "getblock.io"}'
Response
{
"result": "null",
"id": "getblock.io",
"status_code": 405,
"message": "Method not allowed"
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }