DASH
POST
GET
Last updated on January 1, 1970
3 min read
Method masternode_payments undefined ()
connect with JSON-RPC protocol
masternode_payments
Added in Dash Core 0.17.0prints an array of deterministic masternodes and their payments for thespecified block.By default, payment information is returned for only the chain tip. Moreblock winners can be requested via the optional count parameter.
Parameters
method name
- string
None
Block Hash
- string (hex)
Optional
The hash of the starting block (default: tip)
count
- number (int)
Optional
The number of blocks to return (default: 1). Will return previous blocks if is negative. Both 1 and -1 correspond to the chain tip.
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": "masternode",
"params": ["payments", null, null],
"id": "getblock.io"}'
Response
{
"error": null,
"id": "getblock.io",
"result": [
{
"height": 407822,
"blockhash": "0000030ae0ca262af12918eac9069e61c481e17ac65a26c87ee44427699c3f3a",
"amount": 1253571429,
"masternodes": [
{
"proTxHash": "c865b48a09801c61dce5804f28fe994c72577254ea1859cf1c37fe92b428e757",
"amount": 1253571429,
"payees": [
{
"address": "yP72QU7PMG8wNQVTtaQrCLVKCmbuDeAK91",
"script": "76a9141e8efb321d5cad77e28e4e6b51546932579d02f588ac",
"amount": 1253571429
}
]
}
]
}
]
}
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" }