Example code for the gobject_submit {disallowed} json-rpc method. Сomplete guide on how to use gobject_submit {disallowed} json-rpc in GetBlock.io Web3 documentation.
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).
data
- string (hex)
Fee transaction ID - required for all objects except triggers.
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "gobject",
"params": ["submit", null, null, null, null, null],
"id": "getblock.io"}'
{
"result": "null",
"id": "getblock.io",
"status_code": 405,
"message": "Method not allowed"
}