Getstakingreward

getstakingreward "blockhash" ( recompute )

Return a list of possible staking reward winners based on the previous block hash.
If -deprecatedrpc=getstakingreward is set it returns a single payout script instead of an array.

Arguments:
1. blockhash    (string, required) The previous block hash, hex encoded.
2. recompute    (boolean, optional, default=false) Whether to recompute the staking reward winner if there is a cached value.

Result:
[                      (json array)
  {                    (json object) The winning proof payout script
    "asm" : "str",     (string) Decoded payout script
    "hex" : "hex",     (string) Raw payout script in hex format
    "type" : "str",    (string) The output type (e.g. nonstandard, pubkey, pubkeyhash, scripthash, multisig, nulldata)
    "reqSigs" : n,     (numeric) The required signatures
    "addresses" : [    (json array)
      "str",           (string) eCash address
      ...
    ]
  },
  ...
]

Examples:
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getstakingreward", "params": [<blockhash>]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/