decodeavalanchedelegation "delegation"

Convert a serialized, hex-encoded avalanche proof delegation, into JSON object. 
The validity of the delegation is not verified.

1. delegation    (string, required) The delegation hex string

{                             (json object)
  "pubkey" : "hex",           (string) The public key the proof is delegated to.
  "proofmaster" : "hex",      (string) The delegated proof master public key.
  "delegationid" : "hex",     (string) The identifier of this delegation.
  "limitedid" : "hex",        (string) A delegated proof data hash excluding the master key.
  "proofid" : "hex",          (string) A hash of the delegated proof limitedid and master key.
  "depth" : n,                (numeric) The number of delegation levels.
  "levels" : [                (json array)
    {                         (json object)
      "index" : n,            (numeric) The index of this delegation level.
      "pubkey" : "hex",       (string) This delegated public key for this level
      "signature" : "str"     (string) Signature of this delegation level (base64 encoded)

> bitcoin-cli decodeavalanchedelegation "<hex delegation>"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "decodeavalanchedelegation", "params": ["<hex delegation>"]}' -H 'content-type: text/plain;'