Difference between revisions of "JSON-RPC-Commands"

From Snowblossom Wiki
Jump to: navigation, search
(get_transaction)
(get_transaction)
 
(6 intermediate revisions by the same user not shown)
Line 285: Line 285:
 
   "jsonrpc": "2.0"
 
   "jsonrpc": "2.0"
 
}</pre>
 
}</pre>
 +
 +
 +
Or you can ask for a parsed transaction as well with the "send_json" parameter:
 +
 +
 +
<pre>
 +
{
 +
  "jsonrpc": "2.0",
 +
  "method": "get_transaction",
 +
  "id": "0",
 +
  "params": {
 +
    "tx_hash": "8a18fddf844916dab32a628112666baadc9917629bb2ce7a302079114c530d58",
 +
    "send_json": true
 +
  }
 +
}
 +
 +
</pre>
 +
 +
<pre>
 +
{
 +
  "result": {
 +
    "tx_json": {
 +
      "innerData": "CAEiOgoUk6UchG83ss2wXq1ij+ScBhPrPTASINVlBM6Tk0xy8nDwcoda89/ZNNInHgue+GkgJVT014x1GAEiOgoUk6UchG83ss2wXq1ij+ScBhPrPTASICsdKI6rHzWzvI4eMCR3CVqzfWRnkOCumFsDCGaWZ7B+GAEiOAoUV7ovOCtz2bCnx+6rs08Hz/U+JiASIHAD1gFxQdyVlu8vwYvf4xe0RG1Y4/SaV3P3fbdjYqA5IjoKFJOlHIRvN7LNsF6tYo/knAYT6z0wEiCzbjXfW7H+pz8ix0oYIocFiCvqUmK5lIcJBAHmmE5gOBgBIjgKFFe6Lzgrc9mwp8fuq7NPB8/1PiYgEiCCAHthcIE1ukKnYN3+LvNXL3WzdQxymU/ejgkaGUACpiI4ChSyAnsd+DS72kG0PBD7Jsg3bE3w1hIgiiBo6TtViZkSknOvAamJ3ivPIUIimeVGozaHQloX5GEqGwiAwtcvEhSb3ezjcMaN6o2kmm5GXuCiyvA2UCobCKWGsQISFK7N6mcCBXaBPcdclEPbGOXayRD6MikIARIlCAESIQNfYo3qyvvpm+qgQ31ISFCLweyMzd9Tqwp50rV3CZo3QzIpCAESJQgBEiEDfqWtTMgksA850uMlEHfVyCf0MnuHo/FcnzNuyY+6POQyKQgBEiUIARIhAx+sKcASufc1UUUKcBGqZLUs+vttZHA7cqy3xzw1N91RQJsQUhBUSElTIElTIEEgU1RSSU5H",
 +
      "txHash": "ihj934RJFtqzKmKBEmZrqtyZF2Kbss56MCB5EUxTDVg=",
 +
      "signatures": [
 +
        {
 +
          "claimIdx": 2,
 +
          "signature": "MEQCICW5ELVh61bz8Jb+360h/b6lvzDhPTRgNJRUcMTUXMaoAiBwuLCNgBBVj5E+C9UtwARHowdeyFvOzfUQAvuEkfr7WQ=="
 +
        },
 +
        {
 +
          "claimIdx": 1,
 +
          "signature": "MEYCIQDf4BXeC/ETtbNEYSKerDI6rzdDXhtbKRWMkp6Y5QbrXwIhALJwNqwlDOCkxRP/Bl6ty2QWGqagteNQqKXtC+1xjN98"
 +
        },
 +
        {
 +
          "signature": "MEQCIFp5m/32WsCgwltqOUU0gBkAe6YufmUCzqwLkfRJ5TlmAiAhS54hIWH/vY/j5p7mJHnwT3mKpgcTf94LfYzo3jHX2A=="
 +
        }
 +
      ]
 +
    },
 +
    "tx_data": "0a208a18fddf844916dab32a628112666baadc9917629bb2ce7a302079114c530d5812b4040801223a0a1493a51c846f37b2cdb05ead628fe49c0613eb3d301220d56504ce93934c72f270f072875af3dfd934d2271e0b9ef869202554f4d78c751801223a0a1493a51c846f37b2cdb05ead628fe49c0613eb3d3012202b1d288eab1f35b3bc8e1e302477095ab37d646790e0ae985b0308669667b07e180122380a1457ba2f382b73d9b0a7c7eeabb34f07cff53e262012207003d6017141dc9596ef2fc18bdfe317b4446d58e3f49a5773f77db76362a039223a0a1493a51c846f37b2cdb05ead628fe49c0613eb3d301220b36e35df5bb1fea73f22c74a18228705882bea5262b99487090401e6984e6038180122380a1457ba2f382b73d9b0a7c7eeabb34f07cff53e2620122082007b61708135ba42a760ddfe2ef3572f75b3750c72994fde8e091a194002a622380a14b2027b1df834bbda41b43c10fb26c8376c4df0d612208a2068e93b558999129273af01a989de2bcf21422299e546a33687425a17e4612a1b0880c2d72f12149bddece370c68dea8da49a6e465ee0a2caf036502a1b08a586b1021214aecdea67020576813dc75c9443db18e5dac910fa32290801122508011221035f628deacafbe99beaa0437d4848508bc1ec8ccddf53ab0a79d2b577099a374332290801122508011221037ea5ad4cc824b00f39d2e3251077d5c827f4327b87a3f15c9f336ec98fba3ce432290801122508011221031fac29c012b9f73551450a7011aa64b52cfafb6d64703b72acb7c73c3537dd51409b10521054484953204953204120535452494e471a4a08021a463044022025b910b561eb56f3f096fedfad21fdbea5bf30e13d346034945470c4d45cc6a8022070b8b08d8010558f913e0bd52dc00447a3075ec85bcecdf51002fb8491fafb591a4c08011a483046022100dfe015de0bf113b5b34461229eac323aaf37435e1b5b29158c929e98e506eb5f022100b27036ac250ce0a4c513ff065eadcb64161aa6a0b5e350a8a5ed0bed718cdf7c1a481a46304402205a799bfdf65ac0a0c25b6a3945348019007ba62e7e6502ceac0b91f449e539660220214b9e212161ffbd8fe3e69ee62479f04f798aa607137fde0b7d8ce8de31d7d8",
 +
    "fee": 2075,
 +
    "tx_inner_json": {
 +
      "outputs": [
 +
        {
 +
          "recipientSpecHash": "m93s43DGjeqNpJpuRl7gosrwNlA=",
 +
          "value": "100000000"
 +
        },
 +
        {
 +
          "recipientSpecHash": "rs3qZwIFdoE9x1yUQ9sY5drJEPo=",
 +
          "value": "4997925"
 +
        }
 +
      ],
 +
      "inputs": [
 +
        {
 +
          "srcTxId": "1WUEzpOTTHLycPByh1rz39k00iceC574aSAlVPTXjHU=",
 +
          "specHash": "k6UchG83ss2wXq1ij+ScBhPrPTA=",
 +
          "srcTxOutIdx": 1
 +
        },
 +
        {
 +
          "srcTxId": "Kx0ojqsfNbO8jh4wJHcJWrN9ZGeQ4K6YWwMIZpZnsH4=",
 +
          "specHash": "k6UchG83ss2wXq1ij+ScBhPrPTA=",
 +
          "srcTxOutIdx": 1
 +
        },
 +
        {
 +
          "srcTxId": "cAPWAXFB3JWW7y/Bi9/jF7REbVjj9JpXc/d9t2NioDk=",
 +
          "specHash": "V7ovOCtz2bCnx+6rs08Hz/U+JiA="
 +
        },
 +
        {
 +
          "srcTxId": "s24131ux/qc/IsdKGCKHBYgr6lJiuZSHCQQB5phOYDg=",
 +
          "specHash": "k6UchG83ss2wXq1ij+ScBhPrPTA=",
 +
          "srcTxOutIdx": 1
 +
        },
 +
        {
 +
          "srcTxId": "ggB7YXCBNbpCp2Dd/i7zVy91s3UMcplP3o4JGhlAAqY=",
 +
          "specHash": "V7ovOCtz2bCnx+6rs08Hz/U+JiA="
 +
        },
 +
        {
 +
          "srcTxId": "iiBo6TtViZkSknOvAamJ3ivPIUIimeVGozaHQloX5GE=",
 +
          "specHash": "sgJ7Hfg0u9pBtDwQ+ybIN2xN8NY="
 +
        }
 +
      ],
 +
      "fee": "2075",
 +
      "extra": "VEhJUyBJUyBBIFNUUklORw==",
 +
      "claims": [
 +
        {
 +
          "sigSpecs": [
 +
            {
 +
              "signatureType": 1,
 +
              "publicKey": "A19ijerK++mb6qBDfUhIUIvB7IzN31OrCnnStXcJmjdD"
 +
            }
 +
          ],
 +
          "requiredSigners": 1
 +
        },
 +
        {
 +
          "sigSpecs": [
 +
            {
 +
              "signatureType": 1,
 +
              "publicKey": "A36lrUzIJLAPOdLjJRB31cgn9DJ7h6PxXJ8zbsmPujzk"
 +
            }
 +
          ],
 +
          "requiredSigners": 1
 +
        },
 +
        {
 +
          "sigSpecs": [
 +
            {
 +
              "signatureType": 1,
 +
              "publicKey": "Ax+sKcASufc1UUUKcBGqZLUs+vttZHA7cqy3xzw1N91R"
 +
            }
 +
          ],
 +
          "requiredSigners": 1
 +
        }
 +
      ],
 +
      "version": 1
 +
    },
 +
    "tx_hash": "8a18fddf844916dab32a628112666baadc9917629bb2ce7a302079114c530d58",
 +
    "status": {
 +
      "mempool": true
 +
    }
 +
  },
 +
  "id": "0",
 +
  "jsonrpc": "2.0"
 +
}
 +
 +
 +
</pre>
  
 
==get_block==
 
==get_block==
Line 501: Line 625:
 
   "jsonrpc": "2.0"
 
   "jsonrpc": "2.0"
 
}
 
}
 +
</pre>
 +
 +
If you want the block data as json, use the "send_json" parameter:
 +
 +
<pre>
 +
{
 +
  "jsonrpc": "2.0",
 +
  "method": "get_block",
 +
  "id": "0",
 +
  "params": {
 +
    "hash": "00000003066973d8f9b045acb08053bc08da85549ee042317d6142fdfc0ab53c",
 +
    "send_json": true
 +
  }
 +
}
 +
</pre>
 +
 +
<pre>
 +
{
 +
  "result": {
 +
    "block_header": {
 +
      "blockHeight": 42090,
 +
      "prevBlockHash": "AAAAObYgVbvRn0laReADYNXtbZr0eWReil0TODBPQIM=",
 +
      "snowField": 5,
 +
      "powProof": [
 +
        {
 +
          "wordIdx": "1899779",
 +
          "merkleComponent": [
 +
            "QtbB73ag0fcEWEjtI0k7rw==",
 +
            "G4sQsWLg/65TKaOu41ItZw==",
 +
            "TeFPayf4GHPDotXMthM53g==",
 +
            "973NPOLXatJxCoXgcKAdvA==",
 +
            "LLaNw7LmpHZInxum+JieIQ==",
 +
            "5hrIX6EKtLRT/+eMcjvLoA==",
 +
            "ezvB1673NnM9RCQLiD1sHA==",
 +
            "+TvsbyqvtLOSyKRX3KEo2w==",
 +
            "TzXArciZKiaBFbhPfVfHpg==",
 +
            "mx/Ftw4IfN8z1Rn0ywc3rQ==",
 +
            "7ZLQL10jLmdS1LmA4LwJbQ==",
 +
            "NuHAwclpFN+3oXf1pVBPYg==",
 +
            "dbaSDcupyeKmOaOn6V84Dg==",
 +
            "d0rQY+mt/6JsOM1IHiPMSQ==",
 +
            "khAafUbl22yNC9muk/0faA==",
 +
            "RA5MuefkfCy7gBAzy03svg==",
 +
            "gvsGDXSVM6Uvr+wiDa0AZw==",
 +
            "Y6H3znL+Bhge6WRplCuN2g==",
 +
            "teUheEyVaFNXs6dYhi2QpA==",
 +
            "9b9OTKVolMP+/okd75I7/g==",
 +
            "aglDFJPkgt1ohEC+oG25cw==",
 +
            "PVniIiKb38aQ8fHYZZi8mQ=="
 +
          ]
 +
        },
 +
        {
 +
          "wordIdx": "328262",
 +
          "merkleComponent": [
 +
            "NUk35XAxeqDRhx4DQxgO0Q==",
 +
            "0uw9ACuD6eSHQBJrUJT2vQ==",
 +
            "FhUODp8/GHvDa7TX8ML05g==",
 +
            "BwbZR6+zAcaTsRfnrUL0Jg==",
 +
            "D4XAVyJG8uOH0DFXUDhHPQ==",
 +
            "6IB7sdd8gFfDM7/CrZ+0ag==",
 +
            "SYCzLdaVv85afAMWbITXHA==",
 +
            "PKB81jfEVdpj9hmXNCvKaQ==",
 +
            "eK6BqY1Yx9SKtN1UNylvRA==",
 +
            "jX3h31RECJGm1fZ1Zc/nOw==",
 +
            "CFU26EsWfRkJMWvjGYBriw==",
 +
            "tTGPWdxwASSAv+QVjPolHQ==",
 +
            "iayncEY9zdKh3YlvIXB1kQ==",
 +
            "u94cpx1DoTx3u3Pajo6FQA==",
 +
            "30ciBfheKyd56oWn2oNYGg==",
 +
            "rdZkf6UbyW8PFnV+oTzzcw==",
 +
            "hMBYrITTdnah1AkgFOK05A==",
 +
            "i695cs0jEw9aBIQbak9Ivw==",
 +
            "JHoEu9dLu6gbGsS0sF1DOQ==",
 +
            "mP3SJMHdYQIBvX68Eq4XfA==",
 +
            "W/52laXxwzkGNWoL0n3FNA==",
 +
            "yVnSaGrvwzjgwJXerXQ/kw=="
 +
          ]
 +
        },
 +
        {
 +
          "wordIdx": "506690",
 +
          "merkleComponent": [
 +
            "+wocAF6rSzTEk7AkZU9+Cw==",
 +
            "s8qMmS7FhidhtTL3SeNW5w==",
 +
            "tPxO7jCi1jHhipzajoANnQ==",
 +
            "xebfmcZfqANc/is7uzU76g==",
 +
            "jWZDMaekcNA8cG7D7kWwzA==",
 +
            "VLDZcATswhQaSxW74smJmw==",
 +
            "nMrBT/y+yk6ro78JkOo/Xw==",
 +
            "xpDzB1D2yFqbMQm8RW9tUw==",
 +
            "Kv1c59DdaazsqbD8ZuqDxw==",
 +
            "VLPHnUfQaKKmuz4STB1B3g==",
 +
            "1h6Kat+m8cOtK4GaEuNuhg==",
 +
            "r4D9rH5HtJZSlpJX1C10Fw==",
 +
            "Hgjy1wvpWP6v7FZ8gbDcAg==",
 +
            "EwaQLRR5ezK6XhPz+Wm/Mg==",
 +
            "FAol3XWveOoaeVwnk9fZjg==",
 +
            "eBqY8K8msY3vLzXBpHtjaw==",
 +
            "YMvnexQfXwrOAwU34V8S8w==",
 +
            "pDAx/x9UllVrnGlxbE/OPg==",
 +
            "qCe/Wzq4Lhp8MAROtmK3QA==",
 +
            "mP3SJMHdYQIBvX68Eq4XfA==",
 +
            "W/52laXxwzkGNWoL0n3FNA==",
 +
            "yVnSaGrvwzjgwJXerXQ/kw=="
 +
          ]
 +
        },
 +
        {
 +
          "wordIdx": "1817637",
 +
          "merkleComponent": [
 +
            "tI6BDEYzAlSfCvStoY8CTQ==",
 +
            "lQTSpjalZyId0vbSndPlyw==",
 +
            "hzRW7MFvcRPGume/O3VhZQ==",
 +
            "EDtPv0edKhiNSG9hNEpneA==",
 +
            "BYv1qvHEVxXcJqW0WfcrvA==",
 +
            "FBMxFOxnQuSkm6C1q/Hg0g==",
 +
            "FD1OiqDuwVnzTLB61M4LUg==",
 +
            "a7IdZeNb6oH4twqVWx8h7g==",
 +
            "0TYaegu0CLL+XmDk2CiTeA==",
 +
            "AShgOoI8SCjbTXuRsbX6yw==",
 +
            "SP5Ey3z08I+ETL8BogQLQA==",
 +
            "HBMxKhvXZN3BCJi+ilkGyA==",
 +
            "AJgOMjl50dNsqn5DiiVOPg==",
 +
            "EsnLfNocCoxxroODXg3F+A==",
 +
            "W0mWhDYnckkLEMtw9VgxWg==",
 +
            "ZhIFMUOiUzNzaPk8c+6dWw==",
 +
            "eCnUA7y8cGPA1JCZkxC0Qw==",
 +
            "SZedbjVbSO7E9hS2nzpdGg==",
 +
            "UngG3DAXAWa+Mq9bfAEcnA==",
 +
            "YtfwFUNNddJfwZgzBJkTYA==",
 +
            "aglDFJPkgt1ohEC+oG25cw==",
 +
            "PVniIiKb38aQ8fHYZZi8mQ=="
 +
          ]
 +
        },
 +
        {
 +
          "wordIdx": "1827266",
 +
          "merkleComponent": [
 +
            "1wLMF3sZXOjNrElSjw3EvQ==",
 +
            "pXsAwc7hH0vPqxWMqUuRSw==",
 +
            "OUpuEv9JxMOJAiO3bbQ7UQ==",
 +
            "KrRArQlMmOfhq8EDzmHXjg==",
 +
            "i8sywAqwCCOgMlPuLcEsQg==",
 +
            "pdUDjnHf1NFRIxhUIGiWvw==",
 +
            "LkXSAvLVoKvkF90M3p+8cQ==",
 +
            "6QzjB62LyyW5GdWxAwNkvQ==",
 +
            "In7BUw6+2c1bIoo3UuBPOQ==",
 +
            "vGo591jymJiBZid7XaWseg==",
 +
            "HvuF2Cs8GaGSnZQ4Ae8adA==",
 +
            "7XQyRTURiqIq+htxIbWtyQ==",
 +
            "zwP1Ia44N3OoFnLLy0MFNg==",
 +
            "oeQv9KASepp3qKEZt9p6Vw==",
 +
            "HDTxZda8haKLrRCPUdI7ww==",
 +
            "bLuF6AGfQUdJsG5/L02YDQ==",
 +
            "eCnUA7y8cGPA1JCZkxC0Qw==",
 +
            "SZedbjVbSO7E9hS2nzpdGg==",
 +
            "UngG3DAXAWa+Mq9bfAEcnA==",
 +
            "YtfwFUNNddJfwZgzBJkTYA==",
 +
            "aglDFJPkgt1ohEC+oG25cw==",
 +
            "PVniIiKb38aQ8fHYZZi8mQ=="
 +
          ]
 +
        },
 +
        {
 +
          "wordIdx": "397309",
 +
          "merkleComponent": [
 +
            "7QHhriZO2KloV9hl8/0UCw==",
 +
            "gS5ODLYB9+TlU5PSpsWWvA==",
 +
            "ftbpR0dnWDaY5JPTeQfliQ==",
 +
            "FDMk24wnCSl/Ysgp7/hP9w==",
 +
            "RlYIN2q6dGc1DsllGealkg==",
 +
            "KSR5vzkKvjXuOqfzeh2TnA==",
 +
            "vXx9qG/jrZNpNTq06ArywA==",
 +
            "H4ociIrdclwg8e5hPHC/Zw==",
 +
            "9Ml2+CQAQk9jOLrrLSVGzQ==",
 +
            "x/DuC7ljgqlx4keDCYpO4w==",
 +
            "xwGUKL4l6zoBbTqZavtXxA==",
 +
            "7/Cw188UgfbG1DCx3RIICw==",
 +
            "q+fWuu+RHApQudQZuu92/A==",
 +
            "d8qak0yAkn6n0lgiNJDglA==",
 +
            "HuC6eJZ+j90ZSofDIDM6HA==",
 +
            "dLtgUlms/gFOprWcMBmZmQ==",
 +
            "SQbM+iUVT2W8ALq1fM8/0A==",
 +
            "D//bHP0yxOP9SRfAP48IMA==",
 +
            "qCe/Wzq4Lhp8MAROtmK3QA==",
 +
            "mP3SJMHdYQIBvX68Eq4XfA==",
 +
            "W/52laXxwzkGNWoL0n3FNA==",
 +
            "yVnSaGrvwzjgwJXerXQ/kw=="
 +
          ]
 +
        }
 +
      ],
 +
      "merkleRootHash": "eBb92YYvkZriLGCls1MGsGm5xzGtCGoWsWm9yv+yQLA=",
 +
      "utxoRootHash": "1Zv6cAVqG5tIo4Ny2m3k5jHjWHHkigz6QvCkbqDe08Y=",
 +
      "snowHash": "AAAAAwZpc9j5sEWssIBTvAjahVSe4EIxfWFC/fwKtTw=",
 +
      "version": 1,
 +
      "nonce": "16gn3S00cno7DNEv",
 +
      "timestamp": "1551848390607",
 +
      "target": "AAAAu0FNR+UgLt5SGU+d1qZ1c5vbYjpmXQENKENF5QE="
 +
    },
 +
    "block": {
 +
      "header": {
 +
        "blockHeight": 42090,
 +
        "prevBlockHash": "AAAAObYgVbvRn0laReADYNXtbZr0eWReil0TODBPQIM=",
 +
        "snowField": 5,
 +
        "powProof": [
 +
          {
 +
            "wordIdx": "1899779",
 +
            "merkleComponent": [
 +
              "QtbB73ag0fcEWEjtI0k7rw==",
 +
              "G4sQsWLg/65TKaOu41ItZw==",
 +
              "TeFPayf4GHPDotXMthM53g==",
 +
              "973NPOLXatJxCoXgcKAdvA==",
 +
              "LLaNw7LmpHZInxum+JieIQ==",
 +
              "5hrIX6EKtLRT/+eMcjvLoA==",
 +
              "ezvB1673NnM9RCQLiD1sHA==",
 +
              "+TvsbyqvtLOSyKRX3KEo2w==",
 +
              "TzXArciZKiaBFbhPfVfHpg==",
 +
              "mx/Ftw4IfN8z1Rn0ywc3rQ==",
 +
              "7ZLQL10jLmdS1LmA4LwJbQ==",
 +
              "NuHAwclpFN+3oXf1pVBPYg==",
 +
              "dbaSDcupyeKmOaOn6V84Dg==",
 +
              "d0rQY+mt/6JsOM1IHiPMSQ==",
 +
              "khAafUbl22yNC9muk/0faA==",
 +
              "RA5MuefkfCy7gBAzy03svg==",
 +
              "gvsGDXSVM6Uvr+wiDa0AZw==",
 +
              "Y6H3znL+Bhge6WRplCuN2g==",
 +
              "teUheEyVaFNXs6dYhi2QpA==",
 +
              "9b9OTKVolMP+/okd75I7/g==",
 +
              "aglDFJPkgt1ohEC+oG25cw==",
 +
              "PVniIiKb38aQ8fHYZZi8mQ=="
 +
            ]
 +
          },
 +
          {
 +
            "wordIdx": "328262",
 +
            "merkleComponent": [
 +
              "NUk35XAxeqDRhx4DQxgO0Q==",
 +
              "0uw9ACuD6eSHQBJrUJT2vQ==",
 +
              "FhUODp8/GHvDa7TX8ML05g==",
 +
              "BwbZR6+zAcaTsRfnrUL0Jg==",
 +
              "D4XAVyJG8uOH0DFXUDhHPQ==",
 +
              "6IB7sdd8gFfDM7/CrZ+0ag==",
 +
              "SYCzLdaVv85afAMWbITXHA==",
 +
              "PKB81jfEVdpj9hmXNCvKaQ==",
 +
              "eK6BqY1Yx9SKtN1UNylvRA==",
 +
              "jX3h31RECJGm1fZ1Zc/nOw==",
 +
              "CFU26EsWfRkJMWvjGYBriw==",
 +
              "tTGPWdxwASSAv+QVjPolHQ==",
 +
              "iayncEY9zdKh3YlvIXB1kQ==",
 +
              "u94cpx1DoTx3u3Pajo6FQA==",
 +
              "30ciBfheKyd56oWn2oNYGg==",
 +
              "rdZkf6UbyW8PFnV+oTzzcw==",
 +
              "hMBYrITTdnah1AkgFOK05A==",
 +
              "i695cs0jEw9aBIQbak9Ivw==",
 +
              "JHoEu9dLu6gbGsS0sF1DOQ==",
 +
              "mP3SJMHdYQIBvX68Eq4XfA==",
 +
              "W/52laXxwzkGNWoL0n3FNA==",
 +
              "yVnSaGrvwzjgwJXerXQ/kw=="
 +
            ]
 +
          },
 +
          {
 +
            "wordIdx": "506690",
 +
            "merkleComponent": [
 +
              "+wocAF6rSzTEk7AkZU9+Cw==",
 +
              "s8qMmS7FhidhtTL3SeNW5w==",
 +
              "tPxO7jCi1jHhipzajoANnQ==",
 +
              "xebfmcZfqANc/is7uzU76g==",
 +
              "jWZDMaekcNA8cG7D7kWwzA==",
 +
              "VLDZcATswhQaSxW74smJmw==",
 +
              "nMrBT/y+yk6ro78JkOo/Xw==",
 +
              "xpDzB1D2yFqbMQm8RW9tUw==",
 +
              "Kv1c59DdaazsqbD8ZuqDxw==",
 +
              "VLPHnUfQaKKmuz4STB1B3g==",
 +
              "1h6Kat+m8cOtK4GaEuNuhg==",
 +
              "r4D9rH5HtJZSlpJX1C10Fw==",
 +
              "Hgjy1wvpWP6v7FZ8gbDcAg==",
 +
              "EwaQLRR5ezK6XhPz+Wm/Mg==",
 +
              "FAol3XWveOoaeVwnk9fZjg==",
 +
              "eBqY8K8msY3vLzXBpHtjaw==",
 +
              "YMvnexQfXwrOAwU34V8S8w==",
 +
              "pDAx/x9UllVrnGlxbE/OPg==",
 +
              "qCe/Wzq4Lhp8MAROtmK3QA==",
 +
              "mP3SJMHdYQIBvX68Eq4XfA==",
 +
              "W/52laXxwzkGNWoL0n3FNA==",
 +
              "yVnSaGrvwzjgwJXerXQ/kw=="
 +
            ]
 +
          },
 +
          {
 +
            "wordIdx": "1817637",
 +
            "merkleComponent": [
 +
              "tI6BDEYzAlSfCvStoY8CTQ==",
 +
              "lQTSpjalZyId0vbSndPlyw==",
 +
              "hzRW7MFvcRPGume/O3VhZQ==",
 +
              "EDtPv0edKhiNSG9hNEpneA==",
 +
              "BYv1qvHEVxXcJqW0WfcrvA==",
 +
              "FBMxFOxnQuSkm6C1q/Hg0g==",
 +
              "FD1OiqDuwVnzTLB61M4LUg==",
 +
              "a7IdZeNb6oH4twqVWx8h7g==",
 +
              "0TYaegu0CLL+XmDk2CiTeA==",
 +
              "AShgOoI8SCjbTXuRsbX6yw==",
 +
              "SP5Ey3z08I+ETL8BogQLQA==",
 +
              "HBMxKhvXZN3BCJi+ilkGyA==",
 +
              "AJgOMjl50dNsqn5DiiVOPg==",
 +
              "EsnLfNocCoxxroODXg3F+A==",
 +
              "W0mWhDYnckkLEMtw9VgxWg==",
 +
              "ZhIFMUOiUzNzaPk8c+6dWw==",
 +
              "eCnUA7y8cGPA1JCZkxC0Qw==",
 +
              "SZedbjVbSO7E9hS2nzpdGg==",
 +
              "UngG3DAXAWa+Mq9bfAEcnA==",
 +
              "YtfwFUNNddJfwZgzBJkTYA==",
 +
              "aglDFJPkgt1ohEC+oG25cw==",
 +
              "PVniIiKb38aQ8fHYZZi8mQ=="
 +
            ]
 +
          },
 +
          {
 +
            "wordIdx": "1827266",
 +
            "merkleComponent": [
 +
              "1wLMF3sZXOjNrElSjw3EvQ==",
 +
              "pXsAwc7hH0vPqxWMqUuRSw==",
 +
              "OUpuEv9JxMOJAiO3bbQ7UQ==",
 +
              "KrRArQlMmOfhq8EDzmHXjg==",
 +
              "i8sywAqwCCOgMlPuLcEsQg==",
 +
              "pdUDjnHf1NFRIxhUIGiWvw==",
 +
              "LkXSAvLVoKvkF90M3p+8cQ==",
 +
              "6QzjB62LyyW5GdWxAwNkvQ==",
 +
              "In7BUw6+2c1bIoo3UuBPOQ==",
 +
              "vGo591jymJiBZid7XaWseg==",
 +
              "HvuF2Cs8GaGSnZQ4Ae8adA==",
 +
              "7XQyRTURiqIq+htxIbWtyQ==",
 +
              "zwP1Ia44N3OoFnLLy0MFNg==",
 +
              "oeQv9KASepp3qKEZt9p6Vw==",
 +
              "HDTxZda8haKLrRCPUdI7ww==",
 +
              "bLuF6AGfQUdJsG5/L02YDQ==",
 +
              "eCnUA7y8cGPA1JCZkxC0Qw==",
 +
              "SZedbjVbSO7E9hS2nzpdGg==",
 +
              "UngG3DAXAWa+Mq9bfAEcnA==",
 +
              "YtfwFUNNddJfwZgzBJkTYA==",
 +
              "aglDFJPkgt1ohEC+oG25cw==",
 +
              "PVniIiKb38aQ8fHYZZi8mQ=="
 +
            ]
 +
          },
 +
          {
 +
            "wordIdx": "397309",
 +
            "merkleComponent": [
 +
              "7QHhriZO2KloV9hl8/0UCw==",
 +
              "gS5ODLYB9+TlU5PSpsWWvA==",
 +
              "ftbpR0dnWDaY5JPTeQfliQ==",
 +
              "FDMk24wnCSl/Ysgp7/hP9w==",
 +
              "RlYIN2q6dGc1DsllGealkg==",
 +
              "KSR5vzkKvjXuOqfzeh2TnA==",
 +
              "vXx9qG/jrZNpNTq06ArywA==",
 +
              "H4ociIrdclwg8e5hPHC/Zw==",
 +
              "9Ml2+CQAQk9jOLrrLSVGzQ==",
 +
              "x/DuC7ljgqlx4keDCYpO4w==",
 +
              "xwGUKL4l6zoBbTqZavtXxA==",
 +
              "7/Cw188UgfbG1DCx3RIICw==",
 +
              "q+fWuu+RHApQudQZuu92/A==",
 +
              "d8qak0yAkn6n0lgiNJDglA==",
 +
              "HuC6eJZ+j90ZSofDIDM6HA==",
 +
              "dLtgUlms/gFOprWcMBmZmQ==",
 +
              "SQbM+iUVT2W8ALq1fM8/0A==",
 +
              "D//bHP0yxOP9SRfAP48IMA==",
 +
              "qCe/Wzq4Lhp8MAROtmK3QA==",
 +
              "mP3SJMHdYQIBvX68Eq4XfA==",
 +
              "W/52laXxwzkGNWoL0n3FNA==",
 +
              "yVnSaGrvwzjgwJXerXQ/kw=="
 +
            ]
 +
          }
 +
        ],
 +
        "merkleRootHash": "eBb92YYvkZriLGCls1MGsGm5xzGtCGoWsWm9yv+yQLA=",
 +
        "utxoRootHash": "1Zv6cAVqG5tIo4Ny2m3k5jHjWHHkigz6QvCkbqDe08Y=",
 +
        "snowHash": "AAAAAwZpc9j5sEWssIBTvAjahVSe4EIxfWFC/fwKtTw=",
 +
        "version": 1,
 +
        "nonce": "16gn3S00cno7DNEv",
 +
        "timestamp": "1551848390607",
 +
        "target": "AAAAu0FNR+UgLt5SGU+d1qZ1c5vbYjpmXQENKENF5QE="
 +
      },
 +
      "transactions": [
 +
        {
 +
          "innerData": "CAEQARoWCOrIAhIQc25vdyB0ZXN0IGEgcGxvdyobCKDLmAESFJ71L/PCK2kHAbQp7FLx1DBo9Of5KhsI4JXTFhIUMajVdpjXQsYuqDUpECcXiRUnS+o=",
 +
          "txHash": "eBb92YYvkZriLGCls1MGsGm5xzGtCGoWsWm9yv+yQLA="
 +
        }
 +
      ]
 +
    }
 +
  },
 +
  "id": "0",
 +
  "jsonrpc": "2.0"
 +
}
 +
 
</pre>
 
</pre>
  
Line 700: Line 1,208:
 
   &quot;jsonrpc&quot;: &quot;2.0&quot;
 
   &quot;jsonrpc&quot;: &quot;2.0&quot;
 
}</pre>
 
}</pre>
 +
 +
 +
== get_address_balance ==
 +
 +
<pre>
 +
{
 +
  "jsonrpc": "2.0",
 +
  "method": "get_address_balance",
 +
  "id": "whatever",
 +
  "params": {
 +
    "address": "3yv92xeqn92cngmsa3dx2d5z48aqg9t667ccpvgh"
 +
  }
 +
}
 +
</pre>
 +
 +
<pre>
 +
{
 +
  "result": {
 +
    "balance": {
 +
      "unconfirmed_snow": 0,
 +
      "flake_confirmed": 2225000000,
 +
      "spendable_snow": 2225,
 +
      "flake_spendable": 2225000000,
 +
      "flake_unconfirmed": 0,
 +
      "confirmed_snow": 2225
 +
    },
 +
    "history": {
 +
      "total_received_snow": 2325.252,
 +
      "transaction_count": 12,
 +
      "flake_total_received": 2325252000
 +
    }
 +
  },
 +
  "id": "whatever",
 +
  "jsonrpc": "2.0"
 +
}
 +
 +
</pre>
 +
 +
== get_address_history ==
 +
 +
<pre>
 +
{
 +
  "jsonrpc": "2.0",
 +
  "method": "get_address_history",
 +
  "id": "whatever",
 +
  "params": {
 +
    "address": "szg2hj2aceldsfyffpheqylqpr4c747rqjnjlxm0"
 +
  }
 +
}
 +
</pre>
 +
 +
<pre>
 +
{
 +
  "result": {
 +
    "tx_list": [
 +
      {
 +
        "tx_hash": "761a03ecb2eb2537c4d33f4e23699d084ea4133a49632617a2e348e0fa4f8a89",
 +
        "block_height": 132894
 +
      },
 +
      {
 +
        "tx_hash": "afb7130e1b553d54178a1e87b772412a5fd6dbf2561be4d93d0c8413d02badf3",
 +
        "block_height": 132894
 +
      },
 +
      {
 +
        "tx_hash": "9fb7b1556b4ad33af580006ac6d78ec5246ce8b954067513641b494867a3968f",
 +
        "block_height": 132894
 +
      },
 +
      {
 +
        "tx_hash": "0e82fdaf5206049bcdaf4408d6a7f63e503d1274e6dc5f5f83843c9f601f672d",
 +
        "block_height": 132894
 +
      },
 +
      {
 +
        "mempool": true,
 +
        "tx_hash": "2e2ee6f412b5930537138cdb35e11349d7613ca74ad2a816bce28a06a5f4b60b"
 +
      }
 +
    ]
 +
  },
 +
  "id": "whatever",
 +
  "jsonrpc": "2.0"
 +
}
 +
 +
</pre>
  
 
= MrPlow =
 
= MrPlow =

Latest revision as of 07:14, 26 November 2020

SnowBlossomClient

Turn on rpcserver by running the client with the command 'rpcserver'. This is done to make sure that running the client (with full access to the wallet in question) is intentional. Requires the following config settings, rpc_port, rpc_username, rpc_password.

getfresh

Gets a fresh address. Optional parameters:

  • mark_used - (default: false) if true, mark this address as used so it will not be used as change or returned by other getfresh calls.
  • generate_now - (default: false) rather than using the unused key pool, generate a new address to use
curl -d '{ "jsonrpc": "2.0", "method":"getfresh", "id":"getfresh", "params": { "mark_used": true, "generate_now": true }}' http://cows:two@localhost:11323/
{
  "result": {
    "address": "snowtest:fxuc95w50hkpxjrkhmk3zffxdh3qsd5jkh7v8pq7",
    "mark_used": true,
    "generate_now": true
  },
  "id": "getfresh",
  "jsonrpc": "2.0"
}

balance

Get the wallet balance in both SNOW (double) and flakes.

curl -d '{ "jsonrpc": "2.0", "method":"balance", "id":"balance"}' http://cows:two@localhost:11323/
{
  "result": {
    "unconfirmed": 0,
    "spendable": 376960.914462,
    "flake_confirmed": 376960914462,
    "flake_spendable": 376960914462,
    "confirmed": 376960.914462,
    "flake_unconfirmed": 0
  },
  "id": "balance",
  "jsonrpc": "2.0"
}

send / create_transaction

Create a transaction, possible sign and broadcast snow.

  • broadcast - (default: true) broadcast transaction when done making it
  • sign - (default: true) sign transaction with any keys in current wallet that match
  • outputs - list of outputs to send snow to. Must specify snow or flakes.
  • extra - hex encoded binary data to attach as extra field to transaction

Fee related

  • fee_use_estimate - (default: true) use size based fee estimation for the fee
  • fee_flat - SNOW amount to use as the fee

Input Related

  • input_specific_list - Use only the inputs included in the input array (param: inputs)
  • input_confirmed_then_pending - (default: true) prefer to use confirmed, but use pending if run out of confirmed
  • input_confirmed_only - only use outputs that are confirmed as inputs
  • inputs - Specific list of inputs to use. each one must have, address, src_tx, src_tx_out_idx, and value

Change related

  • split_change_over - Amount of SNOW to split change outputs if in excess of
  • change_random_from_wallet - Use a random address rather than a fresh one. Note this can reuse an addresses that has been used before
  • change_fresh_address - (default: true) use a fresh address
  • change_specific_addresses - only use addresses from the list provided with 'change_addresses'
  • change_addresses - List of change addresses to use as change for this transaction

An example using an obnoxious number of features:

{
  "jsonrpc": "2.0",
  "method": "send",
  "id": "send_test",
  "params": {
    "input_specific_list": true,
    "inputs": [
      {
        "address": "8apcj0hhtxcm9xa2j4gaxxkzz9a3fhp35vjemnff",
        "src_tx": "a27aed7072735ecf50c50c3782470006a854a80f8e472283eea77e5dc0db3f03",
        "src_tx_out_idx": 2,
        "value": 2474999113
      }
    ],
    "split_change_over": 2500,
    "sign": true,
    "broadcast": true,
    "outputs": [
      {
        "address": "snowtest:j4hl7axx24yy9m3pfmag3a3jn26f20rwz3u9jhr9",
        "snow": 25
      },
      {
        "address": "snowtest:u4wmy9c8n56vd9285srvd4928ewm0urru2g7va2m",
        "flakes": 50
      }
    ],
    "change_specific_addresses": true,
    "change_addresses": [
      "snowtest:8apcj0hhtxcm9xa2j4gaxxkzz9a3fhp35vjemnff",
      "m36evc3zlqr4r3uuy6g3r6t3299769cwhldzsehu"
    ]
  }
}
{
  "result": {
    "signatures_added": 1,
    "tx_data": "0a209c73bd7dc38b7789c324c7f554361b9dcbfb8c555d7c61e7c64659ae1ed4339c12c1010801223a0a143f43893ef759b1b29baa9551d31ac2117b14dc311220a27aed
7072735ecf50c50c3782470006a854a80f8e472283eea77e5dc0db3f0318022a1c089283a090091214dc75966222f80751c79c269111e971514bed170e2a1b08c0f0f50b1214956fff74c655
4842ee214efa88f6329ab4953c6e2a1808321214e55db217079d34c69547a406c6d4aa3e5db7f063322908011225080112210219a144311398579e6a0f8c57897e2671376c10a5cbd2e5cae9
a29a7366a429d440c5061a491a473045022100df1ea4cdd520467b43e2bd851a5c9ced3d63d12b87e927a061e64c7621a7ac5702202651bbfb75862ef8ad83e2d0df03cd42319642e6fcece3
39a5678777e2bba621",
    "fee": 837,
    "tx_hash": "9c73bd7dc38b7789c324c7f554361b9dcbfb8c555d7c61e7c64659ae1ed4339c",
    "all_signed": true
  },
  "id": "send_test",
  "jsonrpc": "2.0"
}

sign-transaction

This operation signs the input transaction with any relevant keys that are available. That could be zero keys.

{
  "jsonrpc": "2.0",
  "method": "sign_transaction",
  "id": "signtx8",
  "params": {
    "tx_data": "0a2038e32c8d9ad597cb1a709cd87b0c2f8e94095332842e5b00cac6976b4209b63712c1010801223a0a141417000f56a6fcf03964af73ffb25cad72d0e8e81220f72100b84bfdcb576a5a138766a4aefef992ef92e8c95dea095cc7a34bc84806181c2a1808321214e55db217079d34c69547a406c6d4aa3e5db7f0632a1b08c0f0f50b1214956fff74c6554842ee214efa88f6329ab4953c6e2a1c08c9fa959c091214dc75966222f80751c79c269111e971514bed170e322908011225080112210241a39501924c65162e5ca92dbbda43565b81023da57f802638fd2f72fd88e18940c506"
  }
}
{
  "result": {
    "signatures_added": 1,
    "tx_data": "0a2038e32c8d9ad597cb1a709cd87b0c2f8e94095332842e5b00cac6976b4209b63712c1010801223a0a141417000f56a6fcf03964af73ffb25cad72d0e8e81220f72100b84bfdcb576a5a138766a4aefef992ef92e8c95dea095cc7a34bc84806181c2a1808321214e55db217079d34c69547a406c6d4aa3e5db7f0632a1b08c0f0f50b1214956fff74c6554842ee214efa88f6329ab4953c6e2a1c08c9fa959c091214dc75966222f80751c79c269111e971514bed170e322908011225080112210241a39501924c65162e5ca92dbbda43565b81023da57f802638fd2f72fd88e18940c5061a491a473045022100a5a3d8b81968a15b5a6a19e2e5d712fe65df8dea83c4bdf9ece60b7dc2c2193f0220579ff3598d894239882cafe612f5b82a7944687adcd35a981e2736abeaaa8b1b",
    "fee": 837,
    "tx_hash": "38e32c8d9ad597cb1a709cd87b0c2f8e94095332842e5b00cac6976b4209b637",
    "all_signed": true
  },
  "id": "signtx8",
  "jsonrpc": "2.0"
}

broadcast

This sends the transaction on the network.

{
  "jsonrpc": "2.0",
  "method": "broadcast",
  "id": "cast",
  "params": {
    "tx_data": "0a2038e32c8d9ad597cb1a709cd87b0c2f8e94095332842e5b00cac6976b4209b63712c1010801223a0a141417000f56a6fcf03964af73ffb25cad72d0e8e81220f72100b84bfdcb576a5a138766a4aefef992ef92e8c95dea095cc7a34bc84806181c2a1808321214e55db217079d34c69547a406c6d4aa3e5db7f0632a1b08c0f0f50b1214956fff74c6554842ee214efa88f6329ab4953c6e2a1c08c9fa959c091214dc75966222f80751c79c269111e971514bed170e322908011225080112210241a39501924c65162e5ca92dbbda43565b81023da57f802638fd2f72fd88e18940c5061a491a47304502202aaeeb87db579e5201df9188fc4161d1fc2ef71fc5675d7b30e1cd2906625896022100cb64cb9ecdad42533c69873e05154e10b22f14d3b0c838da9a9ae533adbd5acd"
  }
}
{
  "result": {
    "tx_data": "0a2038e32c8d9ad597cb1a709cd87b0c2f8e94095332842e5b00cac6976b4209b63712c1010801223a0a141417000f56a6fcf03964af73ffb25cad72d0e8e81220f72100b84bfdcb576a5a138766a4aefef992ef92e8c95dea095cc7a34bc84806181c2a1808321214e55db217079d34c69547a406c6d4aa3e5db7f0632a1b08c0f0f50b1214956fff74c6554842ee214efa88f6329ab4953c6e2a1c08c9fa959c091214dc75966222f80751c79c269111e971514bed170e322908011225080112210241a39501924c65162e5ca92dbbda43565b81023da57f802638fd2f72fd88e18940c5061a491a47304502202aaeeb87db579e5201df9188fc4161d1fc2ef71fc5675d7b30e1cd2906625896022100cb64cb9ecdad42533c69873e05154e10b22f14d3b0c838da9a9ae533adbd5acd",
    "fee": 837,
    "tx_hash": "38e32c8d9ad597cb1a709cd87b0c2f8e94095332842e5b00cac6976b4209b637"
  },
  "id": "cast",
  "jsonrpc": "2.0"
}

get_address_hash

Get the hex spechash for an address.

{
  "jsonrpc": "2.0",
  "method": "get_address_hash",
  "id": "0",
  "params": {
    "address": "snowtest:08n4fjwyuwxuc54y3m67mrgl9qgc8wylrahjpyxd"
  }
}
{
  "result": {
    "address": "snowtest:08n4fjwyuwxuc54y3m67mrgl9qgc8wylrahjpyxd",
    "spechash": "79e754c9c4e38dcc52a48ef5ed8d1f281183b89f"
  },
  "id": "0",
  "jsonrpc": "2.0"
}

get_hash_address

Get the address for a given spechash

{
  "jsonrpc": "2.0",
  "method": "get_hash_address",
  "id": "0",
  "params": {
    "spechash": "79e754c9c4e38dcc52a48ef5ed8d1f281183b89f"
  }
}
{
  "result": {
    "address": "snowtest:08n4fjwyuwxuc54y3m67mrgl9qgc8wylrahjpyxd",
    "spechash": "79e754c9c4e38dcc52a48ef5ed8d1f281183b89f"
  },
  "id": "0",
  "jsonrpc": "2.0"
}

parse_transaction

For the given tx_data, give a json version of the transaction. If any integers are oddly missing, they are probably zero, which protobuf omits as default. All byte strings are as base64 even though everything else uses hex for json interface.

{
  "jsonrpc": "2.0",
  "method": "parse_transaction",
  "id": "0",
  "params": {
    "tx_data": "0a201b7d5d0502dfe5de22c5fb30e58fef20dc332da51e3e0ef55c061ba79c616ca012a601080122380a1439484a240082fffe5c588618ac612080801de1fe12207360a94dc251c4a7fdd7465fcc98c3f6753de7fbc89fbd005bb3dafa89f4d6772a1d08c1f1f795ba0112141b8522585858bfd2934ae14c6f119bb6976e88172a1b08c0f0f50b1214956fff74c6554842ee214efa88f6329ab4953c6e322908011225080112210235762013f9aa121b588e745e4cc62267973763997d150edc430f1a68c45117e840ff051a481a463044022018b4698d72102eba38bb49f0ede1472a3b838f6464b0399de3349e5c3e1d5589022036b69c76f35fa5ff0622f6a67cf51f5da86938bde9fd0fd1592f7b1f09721b33"
  }
}
{
  "result": {
    "tx": {
      "innerData": "CAEiOAoUOUhKJACC//5cWIYYrGEggIAd4f4SIHNgqU3CUcSn/ddGX8yYw/Z1Pef7yJ+9AFuz2vqJ9NZ3Kh0IwfH3lboBEhQbhSJYWFi/0pNK4UxvEZu2l26IFyobCMDw9QsSFJVv/3TGVUhC7iFO+oj2Mpq0lTxuMikIARIlCAESIQI1diAT+aoSG1iOdF5MxiJnlzdjmX0VDtxDDxpoxFEX6ED/BQ==",
      "txHash": "G31dBQLf5d4ixfsw5Y/vINwzLaUePg71XAYbp5xhbKA=",
      "signatures": [
        {
          "signature": "MEQCIBi0aY1yEC66OLtJ8O3hRyo7g49kZLA5neM0nlw+HVWJAiA2tpx281+l/wYi9qZ89R9dqGk4ven9D9FZL3sfCXIbMw=="
        }
      ]
    },
    "inner": {
      "outputs": [
        {
          "recipientSpecHash": "G4UiWFhYv9KTSuFMbxGbtpduiBc=",
          "value": "49974999233"
        },
        {
          "recipientSpecHash": "lW//dMZVSELuIU76iPYymrSVPG4=",
          "value": "25000000"
        }
      ],
      "inputs": [
        {
          "srcTxId": "c2CpTcJRxKf910ZfzJjD9nU95/vIn70AW7Pa+on01nc=",
          "specHash": "OUhKJACC//5cWIYYrGEggIAd4f4="
        }
      ],
      "fee": "767",
      "claims": [
        {
          "sigSpecs": [
            {
              "signatureType": 1,
              "publicKey": "AjV2IBP5qhIbWI50XkzGImeXN2OZfRUO3EMPGmjEURfo"
            }
          ],
          "requiredSigners": 1
        }
      ],
      "version": 1
    }
  },
  "id": "0",
  "jsonrpc": "2.0"
}

get_transaction

Get the hex bytes for a transaction and also its status.

{
  "jsonrpc": "2.0",
  "method": "get_transaction",
  "id": "0",
  "params": {
    "tx_hash": "a07228f2313a76d468412a439cc87a87389761a67950c32c898d47edcbb8a1df"
  }
}
{
  "result": {
    "tx_data": "0a20a07228f2313a76d468412a439cc87a87389761a67950c32c898d47edcbb8a1df12a501080122380a1452013f3cd4296235158f708db2c52390f2c195f0122016530e2573da7c84f9104af6ee5d6ef31e7423b440f827d801c74e48b37d43c42a1b08c0f0f50b1214956fff74c6554842ee214efa88f6329ab4953c6e2a1c08c199e9b44a12147952bcad957f1164142c7947aeba9176f80c534c3229080112250801122102a27ab7714f04fa86be92e82daad876451b6b575945c0820b9342a94d35821e6b40ff051a4a1a483046022100c21f0859d972724310e8d52888c73c9d8f648e2fa0492369327f38094ce8eca5022100941254d6b3fced1d5b90e88c5a44d0b7d00907a9756030f4e22513134db28dbe",
    "fee": 767,
    "tx_hash": "a07228f2313a76d468412a439cc87a87389761a67950c32c898d47edcbb8a1df",
    "status": {
      "heightConfirmed": 13672,
      "confirmations": 2,
      "confirmed": true
    }
  },
  "id": "0",
  "jsonrpc": "2.0"
}


Or you can ask for a parsed transaction as well with the "send_json" parameter:


{
  "jsonrpc": "2.0",
  "method": "get_transaction",
  "id": "0",
  "params": {
    "tx_hash": "8a18fddf844916dab32a628112666baadc9917629bb2ce7a302079114c530d58",
    "send_json": true
  }
}

{
  "result": {
    "tx_json": {
      "innerData": "CAEiOgoUk6UchG83ss2wXq1ij+ScBhPrPTASINVlBM6Tk0xy8nDwcoda89/ZNNInHgue+GkgJVT014x1GAEiOgoUk6UchG83ss2wXq1ij+ScBhPrPTASICsdKI6rHzWzvI4eMCR3CVqzfWRnkOCumFsDCGaWZ7B+GAEiOAoUV7ovOCtz2bCnx+6rs08Hz/U+JiASIHAD1gFxQdyVlu8vwYvf4xe0RG1Y4/SaV3P3fbdjYqA5IjoKFJOlHIRvN7LNsF6tYo/knAYT6z0wEiCzbjXfW7H+pz8ix0oYIocFiCvqUmK5lIcJBAHmmE5gOBgBIjgKFFe6Lzgrc9mwp8fuq7NPB8/1PiYgEiCCAHthcIE1ukKnYN3+LvNXL3WzdQxymU/ejgkaGUACpiI4ChSyAnsd+DS72kG0PBD7Jsg3bE3w1hIgiiBo6TtViZkSknOvAamJ3ivPIUIimeVGozaHQloX5GEqGwiAwtcvEhSb3ezjcMaN6o2kmm5GXuCiyvA2UCobCKWGsQISFK7N6mcCBXaBPcdclEPbGOXayRD6MikIARIlCAESIQNfYo3qyvvpm+qgQ31ISFCLweyMzd9Tqwp50rV3CZo3QzIpCAESJQgBEiEDfqWtTMgksA850uMlEHfVyCf0MnuHo/FcnzNuyY+6POQyKQgBEiUIARIhAx+sKcASufc1UUUKcBGqZLUs+vttZHA7cqy3xzw1N91RQJsQUhBUSElTIElTIEEgU1RSSU5H",
      "txHash": "ihj934RJFtqzKmKBEmZrqtyZF2Kbss56MCB5EUxTDVg=",
      "signatures": [
        {
          "claimIdx": 2,
          "signature": "MEQCICW5ELVh61bz8Jb+360h/b6lvzDhPTRgNJRUcMTUXMaoAiBwuLCNgBBVj5E+C9UtwARHowdeyFvOzfUQAvuEkfr7WQ=="
        },
        {
          "claimIdx": 1,
          "signature": "MEYCIQDf4BXeC/ETtbNEYSKerDI6rzdDXhtbKRWMkp6Y5QbrXwIhALJwNqwlDOCkxRP/Bl6ty2QWGqagteNQqKXtC+1xjN98"
        },
        {
          "signature": "MEQCIFp5m/32WsCgwltqOUU0gBkAe6YufmUCzqwLkfRJ5TlmAiAhS54hIWH/vY/j5p7mJHnwT3mKpgcTf94LfYzo3jHX2A=="
        }
      ]
    },
    "tx_data": "0a208a18fddf844916dab32a628112666baadc9917629bb2ce7a302079114c530d5812b4040801223a0a1493a51c846f37b2cdb05ead628fe49c0613eb3d301220d56504ce93934c72f270f072875af3dfd934d2271e0b9ef869202554f4d78c751801223a0a1493a51c846f37b2cdb05ead628fe49c0613eb3d3012202b1d288eab1f35b3bc8e1e302477095ab37d646790e0ae985b0308669667b07e180122380a1457ba2f382b73d9b0a7c7eeabb34f07cff53e262012207003d6017141dc9596ef2fc18bdfe317b4446d58e3f49a5773f77db76362a039223a0a1493a51c846f37b2cdb05ead628fe49c0613eb3d301220b36e35df5bb1fea73f22c74a18228705882bea5262b99487090401e6984e6038180122380a1457ba2f382b73d9b0a7c7eeabb34f07cff53e2620122082007b61708135ba42a760ddfe2ef3572f75b3750c72994fde8e091a194002a622380a14b2027b1df834bbda41b43c10fb26c8376c4df0d612208a2068e93b558999129273af01a989de2bcf21422299e546a33687425a17e4612a1b0880c2d72f12149bddece370c68dea8da49a6e465ee0a2caf036502a1b08a586b1021214aecdea67020576813dc75c9443db18e5dac910fa32290801122508011221035f628deacafbe99beaa0437d4848508bc1ec8ccddf53ab0a79d2b577099a374332290801122508011221037ea5ad4cc824b00f39d2e3251077d5c827f4327b87a3f15c9f336ec98fba3ce432290801122508011221031fac29c012b9f73551450a7011aa64b52cfafb6d64703b72acb7c73c3537dd51409b10521054484953204953204120535452494e471a4a08021a463044022025b910b561eb56f3f096fedfad21fdbea5bf30e13d346034945470c4d45cc6a8022070b8b08d8010558f913e0bd52dc00447a3075ec85bcecdf51002fb8491fafb591a4c08011a483046022100dfe015de0bf113b5b34461229eac323aaf37435e1b5b29158c929e98e506eb5f022100b27036ac250ce0a4c513ff065eadcb64161aa6a0b5e350a8a5ed0bed718cdf7c1a481a46304402205a799bfdf65ac0a0c25b6a3945348019007ba62e7e6502ceac0b91f449e539660220214b9e212161ffbd8fe3e69ee62479f04f798aa607137fde0b7d8ce8de31d7d8",
    "fee": 2075,
    "tx_inner_json": {
      "outputs": [
        {
          "recipientSpecHash": "m93s43DGjeqNpJpuRl7gosrwNlA=",
          "value": "100000000"
        },
        {
          "recipientSpecHash": "rs3qZwIFdoE9x1yUQ9sY5drJEPo=",
          "value": "4997925"
        }
      ],
      "inputs": [
        {
          "srcTxId": "1WUEzpOTTHLycPByh1rz39k00iceC574aSAlVPTXjHU=",
          "specHash": "k6UchG83ss2wXq1ij+ScBhPrPTA=",
          "srcTxOutIdx": 1
        },
        {
          "srcTxId": "Kx0ojqsfNbO8jh4wJHcJWrN9ZGeQ4K6YWwMIZpZnsH4=",
          "specHash": "k6UchG83ss2wXq1ij+ScBhPrPTA=",
          "srcTxOutIdx": 1
        },
        {
          "srcTxId": "cAPWAXFB3JWW7y/Bi9/jF7REbVjj9JpXc/d9t2NioDk=",
          "specHash": "V7ovOCtz2bCnx+6rs08Hz/U+JiA="
        },
        {
          "srcTxId": "s24131ux/qc/IsdKGCKHBYgr6lJiuZSHCQQB5phOYDg=",
          "specHash": "k6UchG83ss2wXq1ij+ScBhPrPTA=",
          "srcTxOutIdx": 1
        },
        {
          "srcTxId": "ggB7YXCBNbpCp2Dd/i7zVy91s3UMcplP3o4JGhlAAqY=",
          "specHash": "V7ovOCtz2bCnx+6rs08Hz/U+JiA="
        },
        {
          "srcTxId": "iiBo6TtViZkSknOvAamJ3ivPIUIimeVGozaHQloX5GE=",
          "specHash": "sgJ7Hfg0u9pBtDwQ+ybIN2xN8NY="
        }
      ],
      "fee": "2075",
      "extra": "VEhJUyBJUyBBIFNUUklORw==",
      "claims": [
        {
          "sigSpecs": [
            {
              "signatureType": 1,
              "publicKey": "A19ijerK++mb6qBDfUhIUIvB7IzN31OrCnnStXcJmjdD"
            }
          ],
          "requiredSigners": 1
        },
        {
          "sigSpecs": [
            {
              "signatureType": 1,
              "publicKey": "A36lrUzIJLAPOdLjJRB31cgn9DJ7h6PxXJ8zbsmPujzk"
            }
          ],
          "requiredSigners": 1
        },
        {
          "sigSpecs": [
            {
              "signatureType": 1,
              "publicKey": "Ax+sKcASufc1UUUKcBGqZLUs+vttZHA7cqy3xzw1N91R"
            }
          ],
          "requiredSigners": 1
        }
      ],
      "version": 1
    },
    "tx_hash": "8a18fddf844916dab32a628112666baadc9917629bb2ce7a302079114c530d58",
    "status": {
      "mempool": true
    }
  },
  "id": "0",
  "jsonrpc": "2.0"
}


get_block

Get an entire block by height or hash.

By height:

{
  "jsonrpc": "2.0",
  "method": "get_block",
  "id": "0",
  "params": {
    "height": 9
  }
}

By hash:

{
  "jsonrpc": "2.0",
  "method": "get_block",
  "id": "0",
  "params": {
    "hash": "00000003066973d8f9b045acb08053bc08da85549ee042317d6142fdfc0ab53c"
  }
}

Reply, which contains block_header as json and the block_data as a hex encoded protobuf:

{
  "result": {
    "block_header": {
      "blockHeight": 42090,
      "prevBlockHash": "AAAAObYgVbvRn0laReADYNXtbZr0eWReil0TODBPQIM=",
      "snowField": 5,
      "powProof": [
        {
          "wordIdx": "1899779",
          "merkleComponent": [
            "QtbB73ag0fcEWEjtI0k7rw==",
            "G4sQsWLg/65TKaOu41ItZw==",
            "TeFPayf4GHPDotXMthM53g==",
            "973NPOLXatJxCoXgcKAdvA==",
            "LLaNw7LmpHZInxum+JieIQ==",
            "5hrIX6EKtLRT/+eMcjvLoA==",
            "ezvB1673NnM9RCQLiD1sHA==",
            "+TvsbyqvtLOSyKRX3KEo2w==",
            "TzXArciZKiaBFbhPfVfHpg==",
            "mx/Ftw4IfN8z1Rn0ywc3rQ==",
            "7ZLQL10jLmdS1LmA4LwJbQ==",
            "NuHAwclpFN+3oXf1pVBPYg==",
            "dbaSDcupyeKmOaOn6V84Dg==",
            "d0rQY+mt/6JsOM1IHiPMSQ==",
            "khAafUbl22yNC9muk/0faA==",
            "RA5MuefkfCy7gBAzy03svg==",
            "gvsGDXSVM6Uvr+wiDa0AZw==",
            "Y6H3znL+Bhge6WRplCuN2g==",
            "teUheEyVaFNXs6dYhi2QpA==",
            "9b9OTKVolMP+/okd75I7/g==",
            "aglDFJPkgt1ohEC+oG25cw==",
            "PVniIiKb38aQ8fHYZZi8mQ=="
          ]
        },
        {
          "wordIdx": "328262",
          "merkleComponent": [
            "NUk35XAxeqDRhx4DQxgO0Q==",
            "0uw9ACuD6eSHQBJrUJT2vQ==",
            "FhUODp8/GHvDa7TX8ML05g==",
            "BwbZR6+zAcaTsRfnrUL0Jg==",
            "D4XAVyJG8uOH0DFXUDhHPQ==",
            "6IB7sdd8gFfDM7/CrZ+0ag==",
            "SYCzLdaVv85afAMWbITXHA==",
            "PKB81jfEVdpj9hmXNCvKaQ==",
            "eK6BqY1Yx9SKtN1UNylvRA==",
            "jX3h31RECJGm1fZ1Zc/nOw==",
            "CFU26EsWfRkJMWvjGYBriw==",
            "tTGPWdxwASSAv+QVjPolHQ==",
            "iayncEY9zdKh3YlvIXB1kQ==",
            "u94cpx1DoTx3u3Pajo6FQA==",
            "30ciBfheKyd56oWn2oNYGg==",
            "rdZkf6UbyW8PFnV+oTzzcw==",
            "hMBYrITTdnah1AkgFOK05A==",
            "i695cs0jEw9aBIQbak9Ivw==",
            "JHoEu9dLu6gbGsS0sF1DOQ==",
            "mP3SJMHdYQIBvX68Eq4XfA==",
            "W/52laXxwzkGNWoL0n3FNA==",
            "yVnSaGrvwzjgwJXerXQ/kw=="
          ]
        },
        {
          "wordIdx": "506690",
          "merkleComponent": [
            "+wocAF6rSzTEk7AkZU9+Cw==",
            "s8qMmS7FhidhtTL3SeNW5w==",
            "tPxO7jCi1jHhipzajoANnQ==",
            "xebfmcZfqANc/is7uzU76g==",
            "jWZDMaekcNA8cG7D7kWwzA==",
            "VLDZcATswhQaSxW74smJmw==",
            "nMrBT/y+yk6ro78JkOo/Xw==",
            "xpDzB1D2yFqbMQm8RW9tUw==",
            "Kv1c59DdaazsqbD8ZuqDxw==",
            "VLPHnUfQaKKmuz4STB1B3g==",
            "1h6Kat+m8cOtK4GaEuNuhg==",
            "r4D9rH5HtJZSlpJX1C10Fw==",
            "Hgjy1wvpWP6v7FZ8gbDcAg==",
            "EwaQLRR5ezK6XhPz+Wm/Mg==",
            "FAol3XWveOoaeVwnk9fZjg==",
            "eBqY8K8msY3vLzXBpHtjaw==",
            "YMvnexQfXwrOAwU34V8S8w==",
            "pDAx/x9UllVrnGlxbE/OPg==",
            "qCe/Wzq4Lhp8MAROtmK3QA==",
            "mP3SJMHdYQIBvX68Eq4XfA==",
            "W/52laXxwzkGNWoL0n3FNA==",
            "yVnSaGrvwzjgwJXerXQ/kw=="
          ]
        },
        {
          "wordIdx": "1817637",
          "merkleComponent": [
            "tI6BDEYzAlSfCvStoY8CTQ==",
            "lQTSpjalZyId0vbSndPlyw==",
            "hzRW7MFvcRPGume/O3VhZQ==",
            "EDtPv0edKhiNSG9hNEpneA==",
            "BYv1qvHEVxXcJqW0WfcrvA==",
            "FBMxFOxnQuSkm6C1q/Hg0g==",
            "FD1OiqDuwVnzTLB61M4LUg==",
            "a7IdZeNb6oH4twqVWx8h7g==",
            "0TYaegu0CLL+XmDk2CiTeA==",
            "AShgOoI8SCjbTXuRsbX6yw==",
            "SP5Ey3z08I+ETL8BogQLQA==",
            "HBMxKhvXZN3BCJi+ilkGyA==",
            "AJgOMjl50dNsqn5DiiVOPg==",
            "EsnLfNocCoxxroODXg3F+A==",
            "W0mWhDYnckkLEMtw9VgxWg==",
            "ZhIFMUOiUzNzaPk8c+6dWw==",
            "eCnUA7y8cGPA1JCZkxC0Qw==",
            "SZedbjVbSO7E9hS2nzpdGg==",
            "UngG3DAXAWa+Mq9bfAEcnA==",
            "YtfwFUNNddJfwZgzBJkTYA==",
            "aglDFJPkgt1ohEC+oG25cw==",
            "PVniIiKb38aQ8fHYZZi8mQ=="
          ]
        },
        {
          "wordIdx": "1827266",
          "merkleComponent": [
            "1wLMF3sZXOjNrElSjw3EvQ==",
            "pXsAwc7hH0vPqxWMqUuRSw==",
            "OUpuEv9JxMOJAiO3bbQ7UQ==",
            "KrRArQlMmOfhq8EDzmHXjg==",
            "i8sywAqwCCOgMlPuLcEsQg==",
            "pdUDjnHf1NFRIxhUIGiWvw==",
            "LkXSAvLVoKvkF90M3p+8cQ==",
            "6QzjB62LyyW5GdWxAwNkvQ==",
            "In7BUw6+2c1bIoo3UuBPOQ==",
            "vGo591jymJiBZid7XaWseg==",
            "HvuF2Cs8GaGSnZQ4Ae8adA==",
            "7XQyRTURiqIq+htxIbWtyQ==",
            "zwP1Ia44N3OoFnLLy0MFNg==",
            "oeQv9KASepp3qKEZt9p6Vw==",
            "HDTxZda8haKLrRCPUdI7ww==",
            "bLuF6AGfQUdJsG5/L02YDQ==",
            "eCnUA7y8cGPA1JCZkxC0Qw==",
            "SZedbjVbSO7E9hS2nzpdGg==",
            "UngG3DAXAWa+Mq9bfAEcnA==",
            "YtfwFUNNddJfwZgzBJkTYA==",
            "aglDFJPkgt1ohEC+oG25cw==",
            "PVniIiKb38aQ8fHYZZi8mQ=="
          ]
        },
        {
          "wordIdx": "397309",
          "merkleComponent": [
            "7QHhriZO2KloV9hl8/0UCw==",
            "gS5ODLYB9+TlU5PSpsWWvA==",
            "ftbpR0dnWDaY5JPTeQfliQ==",
            "FDMk24wnCSl/Ysgp7/hP9w==",
            "RlYIN2q6dGc1DsllGealkg==",
            "KSR5vzkKvjXuOqfzeh2TnA==",
            "vXx9qG/jrZNpNTq06ArywA==",
            "H4ociIrdclwg8e5hPHC/Zw==",
            "9Ml2+CQAQk9jOLrrLSVGzQ==",
            "x/DuC7ljgqlx4keDCYpO4w==",
            "xwGUKL4l6zoBbTqZavtXxA==",
            "7/Cw188UgfbG1DCx3RIICw==",
            "q+fWuu+RHApQudQZuu92/A==",
            "d8qak0yAkn6n0lgiNJDglA==",
            "HuC6eJZ+j90ZSofDIDM6HA==",
            "dLtgUlms/gFOprWcMBmZmQ==",
            "SQbM+iUVT2W8ALq1fM8/0A==",
            "D//bHP0yxOP9SRfAP48IMA==",
            "qCe/Wzq4Lhp8MAROtmK3QA==",
            "mP3SJMHdYQIBvX68Eq4XfA==",
            "W/52laXxwzkGNWoL0n3FNA==",
            "yVnSaGrvwzjgwJXerXQ/kw=="
          ]
        }
      ],
      "merkleRootHash": "eBb92YYvkZriLGCls1MGsGm5xzGtCGoWsWm9yv+yQLA=",
      "utxoRootHash": "1Zv6cAVqG5tIo4Ny2m3k5jHjWHHkigz6QvCkbqDe08Y=",
      "snowHash": "AAAAAwZpc9j5sEWssIBTvAjahVSe4EIxfWFC/fwKtTw=",
      "version": 1,
      "nonce": "16gn3S00cno7DNEv",
      "timestamp": "1551848390607",
      "target": "AAAAu0FNR+UgLt5SGU+d1qZ1c5vbYjpmXQENKENF5QE="
    },
    "block_data": "0ab914080110eac8021a2000000039b62055bbd19f495a45e00360d5ed6d9af479645e8a5d1338304f408322207816fdd9862f919ae22c60a5b35306b069b9c731ad086a16b169bdcaffb240b02a20d59bfa70056a1b9b48a38372da6de4e631e35871e48a0cfa42f0a46ea0ded3c6320cd7a827dd2d34727a3b0cd12f38cffffc8a952d4220000000bb414d47e5202ede52194f9dd6a675739bdb623a665d010d284345e5014805522000000003066973d8f9b045acb08053bc08da85549ee042317d6142fdfc0ab53c5a90030883fa73121042d6c1ef76a0d1f7045848ed23493baf12101b8b10b162e0ffae5329a3aee3522d6712104de14f6b27f81873c3a2d5ccb61339de1210f7bdcd3ce2d76ad2710a85e070a01dbc12102cb68dc3b2e6a476489f1ba6f8989e211210e61ac85fa10ab4b453ffe78c723bcba012107b3bc1d7aef736733d44240b883d6c1c1210f93bec6f2aafb4b392c8a457dca128db12104f35c0adc8992a268115b84f7d57c7a612109b1fc5b70e087cdf33d519f4cb0737ad1210ed92d02f5d232e6752d4b980e0bc096d121036e1c0c1c96914dfb7a177f5a5504f62121075b6920dcba9c9e2a639a3a7e95f380e1210774ad063e9adffa26c38cd481e23cc49121092101a7d46e5db6c8d0bd9ae93fd1f681210440e4cb9e7e47c2cbb801033cb4decbe121082fb060d749533a52fafec220dad0067121063a1f7ce72fe06181ee96469942b8dda1210b5e521784c95685357b3a758862d90a41210f5bf4e4ca56894c3fefe891def923bfe12106a09431493e482dd688440bea06db97312103d59e222229bdfc690f1f1d86598bc995a900308c684141210354937e570317aa0d1871e0343180ed11210d2ec3d002b83e9e48740126b5094f6bd121016150e0e9f3f187bc36bb4d7f0c2f4e612100706d947afb301c693b117e7ad42f42612100f85c0572246f2e387d031575038473d1210e8807bb1d77c8057c333bfc2ad9fb46a12104980b32dd695bfce5a7c03166c84d71c12103ca07cd637c455da63f61997342bca69121078ae81a98d58c7d48ab4dd5437296f4412108d7de1df54440891a6d5f67565cfe73b1210085536e84b167d1909316be319806b8b1210b5318f59dc70012480bfe4158cfa251d121089aca770463dcdd2a1dd896f217075911210bbde1ca71d43a13c77bb73da8e8e85401210df472205f85e2b2779ea85a7da83581a1210add6647fa51bc96f0f16757ea13cf373121084c058ac84d37676a1d4092014e2b4e412108baf7972cd23130f5a04841b6a4f48bf1210247a04bbd74bbba81b1ac4b4b05d4339121098fdd224c1dd610201bd7ebc12ae177c12105bfe7695a5f1c33906356a0bd27dc5341210c959d2686aefc338e0c095dead743f935a900308c2f61e1210fb0a1c005eab4b34c493b024654f7e0b1210b3ca8c992ec5862761b532f749e356e71210b4fc4eee30a2d631e18a9cda8e800d9d1210c5e6df99c65fa8035cfe2b3bbb353bea12108d664331a7a470d03c706ec3ee45b0cc121054b0d97004ecc2141a4b15bbe2c9899b12109ccac14ffcbeca4eaba3bf0990ea3f5f1210c690f30750f6c85a9b3109bc456f6d5312102afd5ce7d0dd69aceca9b0fc66ea83c7121054b3c79d47d068a2a6bb3e124c1d41de1210d61e8a6adfa6f1c3ad2b819a12e36e861210af80fdac7e47b49652969257d42d741712101e08f2d70be958feafec567c81b0dc0212101306902d14797b32ba5e13f3f969bf321210140a25dd75af78ea1a795c2793d7d98e1210781a98f0af26b18def2f35c1a47b636b121060cbe77b141f5f0ace030537e15f12f31210a43031ff1f5496556b9c69716c4fce3e1210a827bf5b3ab82e1a7c30044eb662b740121098fdd224c1dd610201bd7ebc12ae177c12105bfe7695a5f1c33906356a0bd27dc5341210c959d2686aefc338e0c095dead743f935a900308a5f86e1210b48e810c463302549f0af4ada18f024d12109504d2a636a567221dd2f6d29dd3e5cb1210873456ecc16f7113c6ba67bf3b7561651210103b4fbf479d2a188d486f61344a67781210058bf5aaf1c45715dc26a5b459f72bbc121014133114ec6742e4a49ba0b5abf1e0d21210143d4e8aa0eec159f34cb07ad4ce0b5212106bb21d65e35bea81f8b70a955b1f21ee1210d1361a7a0bb408b2fe5e60e4d828937812100128603a823c4828db4d7b91b1b5facb121048fe44cb7cf4f08f844cbf01a2040b4012101c13312a1bd764ddc10898be8a5906c8121000980e323979d1d36caa7e438a254e3e121012c9cb7cda1c0a8c71ae83835e0dc5f812105b499684362772490b10cb70f558315a12106612053143a253337368f93c73ee9d5b12107829d403bcbc7063c0d490999310b443121049979d6e355b48eec4f614b69f3a5d1a1210527806dc30170166be32af5b7c011c9c121062d7f015434d75d25fc198330499136012106a09431493e482dd688440bea06db97312103d59e222229bdfc690f1f1d86598bc995a900308c2c36f1210d702cc177b195ce8cdac49528f0dc4bd1210a57b00c1cee11f4bcfab158ca94b914b1210394a6e12ff49c4c3890223b76db43b5112102ab440ad094c98e7e1abc103ce61d78e12108bcb32c00ab00823a03253ee2dc12c421210a5d5038e71dfd4d151231854206896bf12102e45d202f2d5a0abe417dd0cde9fbc711210e90ce307ad8bcb25b919d5b1030364bd1210227ec1530ebed9cd5b228a3752e04f391210bc6a39f758f298988166277b5da5ac7a12101efb85d82b3c19a1929d943801ef1a741210ed74324535118aa22afa1b7121b5adc91210cf03f521ae383773a81672cbcb4305361210a1e42ff4a0127a9a77a8a119b7da7a5712101c34f165d6bc85a28bad108f51d23bc312106cbb85e8019f414749b06e7f2f4d980d12107829d403bcbc7063c0d490999310b443121049979d6e355b48eec4f614b69f3a5d1a1210527806dc30170166be32af5b7c011c9c121062d7f015434d75d25fc198330499136012106a09431493e482dd688440bea06db97312103d59e222229bdfc690f1f1d86598bc995a900308fd9f181210ed01e1ae264ed8a96857d865f3fd140b1210812e4e0cb601f7e4e55393d2a6c596bc12107ed6e9474767583698e493d37907e5891210143324db8c2709297f62c829eff84ff71210465608376aba7467350ec96519e6a5921210292479bf390abe35ee3aa7f37a1d939c1210bd7c7da86fe3ad9369353ab4e80af2c012101f8a1c888add725c20f1ee613c70bf671210f4c976f82400424f6338baeb2d2546cd1210c7f0ee0bb96382a971e24783098a4ee31210c7019428be25eb3a016d3a996afb57c41210eff0b0d7cf1481f6c6d430b1dd12080b1210abe7d6baef911c0a50b9d419baef76fc121077ca9a934c80927ea7d258223490e09412101ee0ba78967e8fdd194a87c320333a1c121074bb605259acfe014ea6b59c3019999912104906ccfa25154f65bc00bab57ccf3fd012100fffdb1cfd32c4e3fd4917c03f8f08301210a827bf5b3ab82e1a7c30044eb662b740121098fdd224c1dd610201bd7ebc12ae177c12105bfe7695a5f1c33906356a0bd27dc5341210c959d2686aefc338e0c095dead743f93127a0a207816fdd9862f919ae22c60a5b35306b069b9c731ad086a16b169bdcaffb240b01256080110011a1608eac8021210736e6f772074657374206120706c6f772a1b08a0cb980112149ef52ff3c22b690701b429ec52f1d43068f4e7f92a1b08e095d316121431a8d57698d742c62ea835291027178915274bea"
  },
  "id": "0",
  "jsonrpc": "2.0"
}

If you want the block data as json, use the "send_json" parameter:

{
  "jsonrpc": "2.0",
  "method": "get_block",
  "id": "0",
  "params": {
    "hash": "00000003066973d8f9b045acb08053bc08da85549ee042317d6142fdfc0ab53c",
    "send_json": true
  }
}
{
  "result": {
    "block_header": {
      "blockHeight": 42090,
      "prevBlockHash": "AAAAObYgVbvRn0laReADYNXtbZr0eWReil0TODBPQIM=",
      "snowField": 5,
      "powProof": [
        {
          "wordIdx": "1899779",
          "merkleComponent": [
            "QtbB73ag0fcEWEjtI0k7rw==",
            "G4sQsWLg/65TKaOu41ItZw==",
            "TeFPayf4GHPDotXMthM53g==",
            "973NPOLXatJxCoXgcKAdvA==",
            "LLaNw7LmpHZInxum+JieIQ==",
            "5hrIX6EKtLRT/+eMcjvLoA==",
            "ezvB1673NnM9RCQLiD1sHA==",
            "+TvsbyqvtLOSyKRX3KEo2w==",
            "TzXArciZKiaBFbhPfVfHpg==",
            "mx/Ftw4IfN8z1Rn0ywc3rQ==",
            "7ZLQL10jLmdS1LmA4LwJbQ==",
            "NuHAwclpFN+3oXf1pVBPYg==",
            "dbaSDcupyeKmOaOn6V84Dg==",
            "d0rQY+mt/6JsOM1IHiPMSQ==",
            "khAafUbl22yNC9muk/0faA==",
            "RA5MuefkfCy7gBAzy03svg==",
            "gvsGDXSVM6Uvr+wiDa0AZw==",
            "Y6H3znL+Bhge6WRplCuN2g==",
            "teUheEyVaFNXs6dYhi2QpA==",
            "9b9OTKVolMP+/okd75I7/g==",
            "aglDFJPkgt1ohEC+oG25cw==",
            "PVniIiKb38aQ8fHYZZi8mQ=="
          ]
        },
        {
          "wordIdx": "328262",
          "merkleComponent": [
            "NUk35XAxeqDRhx4DQxgO0Q==",
            "0uw9ACuD6eSHQBJrUJT2vQ==",
            "FhUODp8/GHvDa7TX8ML05g==",
            "BwbZR6+zAcaTsRfnrUL0Jg==",
            "D4XAVyJG8uOH0DFXUDhHPQ==",
            "6IB7sdd8gFfDM7/CrZ+0ag==",
            "SYCzLdaVv85afAMWbITXHA==",
            "PKB81jfEVdpj9hmXNCvKaQ==",
            "eK6BqY1Yx9SKtN1UNylvRA==",
            "jX3h31RECJGm1fZ1Zc/nOw==",
            "CFU26EsWfRkJMWvjGYBriw==",
            "tTGPWdxwASSAv+QVjPolHQ==",
            "iayncEY9zdKh3YlvIXB1kQ==",
            "u94cpx1DoTx3u3Pajo6FQA==",
            "30ciBfheKyd56oWn2oNYGg==",
            "rdZkf6UbyW8PFnV+oTzzcw==",
            "hMBYrITTdnah1AkgFOK05A==",
            "i695cs0jEw9aBIQbak9Ivw==",
            "JHoEu9dLu6gbGsS0sF1DOQ==",
            "mP3SJMHdYQIBvX68Eq4XfA==",
            "W/52laXxwzkGNWoL0n3FNA==",
            "yVnSaGrvwzjgwJXerXQ/kw=="
          ]
        },
        {
          "wordIdx": "506690",
          "merkleComponent": [
            "+wocAF6rSzTEk7AkZU9+Cw==",
            "s8qMmS7FhidhtTL3SeNW5w==",
            "tPxO7jCi1jHhipzajoANnQ==",
            "xebfmcZfqANc/is7uzU76g==",
            "jWZDMaekcNA8cG7D7kWwzA==",
            "VLDZcATswhQaSxW74smJmw==",
            "nMrBT/y+yk6ro78JkOo/Xw==",
            "xpDzB1D2yFqbMQm8RW9tUw==",
            "Kv1c59DdaazsqbD8ZuqDxw==",
            "VLPHnUfQaKKmuz4STB1B3g==",
            "1h6Kat+m8cOtK4GaEuNuhg==",
            "r4D9rH5HtJZSlpJX1C10Fw==",
            "Hgjy1wvpWP6v7FZ8gbDcAg==",
            "EwaQLRR5ezK6XhPz+Wm/Mg==",
            "FAol3XWveOoaeVwnk9fZjg==",
            "eBqY8K8msY3vLzXBpHtjaw==",
            "YMvnexQfXwrOAwU34V8S8w==",
            "pDAx/x9UllVrnGlxbE/OPg==",
            "qCe/Wzq4Lhp8MAROtmK3QA==",
            "mP3SJMHdYQIBvX68Eq4XfA==",
            "W/52laXxwzkGNWoL0n3FNA==",
            "yVnSaGrvwzjgwJXerXQ/kw=="
          ]
        },
        {
          "wordIdx": "1817637",
          "merkleComponent": [
            "tI6BDEYzAlSfCvStoY8CTQ==",
            "lQTSpjalZyId0vbSndPlyw==",
            "hzRW7MFvcRPGume/O3VhZQ==",
            "EDtPv0edKhiNSG9hNEpneA==",
            "BYv1qvHEVxXcJqW0WfcrvA==",
            "FBMxFOxnQuSkm6C1q/Hg0g==",
            "FD1OiqDuwVnzTLB61M4LUg==",
            "a7IdZeNb6oH4twqVWx8h7g==",
            "0TYaegu0CLL+XmDk2CiTeA==",
            "AShgOoI8SCjbTXuRsbX6yw==",
            "SP5Ey3z08I+ETL8BogQLQA==",
            "HBMxKhvXZN3BCJi+ilkGyA==",
            "AJgOMjl50dNsqn5DiiVOPg==",
            "EsnLfNocCoxxroODXg3F+A==",
            "W0mWhDYnckkLEMtw9VgxWg==",
            "ZhIFMUOiUzNzaPk8c+6dWw==",
            "eCnUA7y8cGPA1JCZkxC0Qw==",
            "SZedbjVbSO7E9hS2nzpdGg==",
            "UngG3DAXAWa+Mq9bfAEcnA==",
            "YtfwFUNNddJfwZgzBJkTYA==",
            "aglDFJPkgt1ohEC+oG25cw==",
            "PVniIiKb38aQ8fHYZZi8mQ=="
          ]
        },
        {
          "wordIdx": "1827266",
          "merkleComponent": [
            "1wLMF3sZXOjNrElSjw3EvQ==",
            "pXsAwc7hH0vPqxWMqUuRSw==",
            "OUpuEv9JxMOJAiO3bbQ7UQ==",
            "KrRArQlMmOfhq8EDzmHXjg==",
            "i8sywAqwCCOgMlPuLcEsQg==",
            "pdUDjnHf1NFRIxhUIGiWvw==",
            "LkXSAvLVoKvkF90M3p+8cQ==",
            "6QzjB62LyyW5GdWxAwNkvQ==",
            "In7BUw6+2c1bIoo3UuBPOQ==",
            "vGo591jymJiBZid7XaWseg==",
            "HvuF2Cs8GaGSnZQ4Ae8adA==",
            "7XQyRTURiqIq+htxIbWtyQ==",
            "zwP1Ia44N3OoFnLLy0MFNg==",
            "oeQv9KASepp3qKEZt9p6Vw==",
            "HDTxZda8haKLrRCPUdI7ww==",
            "bLuF6AGfQUdJsG5/L02YDQ==",
            "eCnUA7y8cGPA1JCZkxC0Qw==",
            "SZedbjVbSO7E9hS2nzpdGg==",
            "UngG3DAXAWa+Mq9bfAEcnA==",
            "YtfwFUNNddJfwZgzBJkTYA==",
            "aglDFJPkgt1ohEC+oG25cw==",
            "PVniIiKb38aQ8fHYZZi8mQ=="
          ]
        },
        {
          "wordIdx": "397309",
          "merkleComponent": [
            "7QHhriZO2KloV9hl8/0UCw==",
            "gS5ODLYB9+TlU5PSpsWWvA==",
            "ftbpR0dnWDaY5JPTeQfliQ==",
            "FDMk24wnCSl/Ysgp7/hP9w==",
            "RlYIN2q6dGc1DsllGealkg==",
            "KSR5vzkKvjXuOqfzeh2TnA==",
            "vXx9qG/jrZNpNTq06ArywA==",
            "H4ociIrdclwg8e5hPHC/Zw==",
            "9Ml2+CQAQk9jOLrrLSVGzQ==",
            "x/DuC7ljgqlx4keDCYpO4w==",
            "xwGUKL4l6zoBbTqZavtXxA==",
            "7/Cw188UgfbG1DCx3RIICw==",
            "q+fWuu+RHApQudQZuu92/A==",
            "d8qak0yAkn6n0lgiNJDglA==",
            "HuC6eJZ+j90ZSofDIDM6HA==",
            "dLtgUlms/gFOprWcMBmZmQ==",
            "SQbM+iUVT2W8ALq1fM8/0A==",
            "D//bHP0yxOP9SRfAP48IMA==",
            "qCe/Wzq4Lhp8MAROtmK3QA==",
            "mP3SJMHdYQIBvX68Eq4XfA==",
            "W/52laXxwzkGNWoL0n3FNA==",
            "yVnSaGrvwzjgwJXerXQ/kw=="
          ]
        }
      ],
      "merkleRootHash": "eBb92YYvkZriLGCls1MGsGm5xzGtCGoWsWm9yv+yQLA=",
      "utxoRootHash": "1Zv6cAVqG5tIo4Ny2m3k5jHjWHHkigz6QvCkbqDe08Y=",
      "snowHash": "AAAAAwZpc9j5sEWssIBTvAjahVSe4EIxfWFC/fwKtTw=",
      "version": 1,
      "nonce": "16gn3S00cno7DNEv",
      "timestamp": "1551848390607",
      "target": "AAAAu0FNR+UgLt5SGU+d1qZ1c5vbYjpmXQENKENF5QE="
    },
    "block": {
      "header": {
        "blockHeight": 42090,
        "prevBlockHash": "AAAAObYgVbvRn0laReADYNXtbZr0eWReil0TODBPQIM=",
        "snowField": 5,
        "powProof": [
          {
            "wordIdx": "1899779",
            "merkleComponent": [
              "QtbB73ag0fcEWEjtI0k7rw==",
              "G4sQsWLg/65TKaOu41ItZw==",
              "TeFPayf4GHPDotXMthM53g==",
              "973NPOLXatJxCoXgcKAdvA==",
              "LLaNw7LmpHZInxum+JieIQ==",
              "5hrIX6EKtLRT/+eMcjvLoA==",
              "ezvB1673NnM9RCQLiD1sHA==",
              "+TvsbyqvtLOSyKRX3KEo2w==",
              "TzXArciZKiaBFbhPfVfHpg==",
              "mx/Ftw4IfN8z1Rn0ywc3rQ==",
              "7ZLQL10jLmdS1LmA4LwJbQ==",
              "NuHAwclpFN+3oXf1pVBPYg==",
              "dbaSDcupyeKmOaOn6V84Dg==",
              "d0rQY+mt/6JsOM1IHiPMSQ==",
              "khAafUbl22yNC9muk/0faA==",
              "RA5MuefkfCy7gBAzy03svg==",
              "gvsGDXSVM6Uvr+wiDa0AZw==",
              "Y6H3znL+Bhge6WRplCuN2g==",
              "teUheEyVaFNXs6dYhi2QpA==",
              "9b9OTKVolMP+/okd75I7/g==",
              "aglDFJPkgt1ohEC+oG25cw==",
              "PVniIiKb38aQ8fHYZZi8mQ=="
            ]
          },
          {
            "wordIdx": "328262",
            "merkleComponent": [
              "NUk35XAxeqDRhx4DQxgO0Q==",
              "0uw9ACuD6eSHQBJrUJT2vQ==",
              "FhUODp8/GHvDa7TX8ML05g==",
              "BwbZR6+zAcaTsRfnrUL0Jg==",
              "D4XAVyJG8uOH0DFXUDhHPQ==",
              "6IB7sdd8gFfDM7/CrZ+0ag==",
              "SYCzLdaVv85afAMWbITXHA==",
              "PKB81jfEVdpj9hmXNCvKaQ==",
              "eK6BqY1Yx9SKtN1UNylvRA==",
              "jX3h31RECJGm1fZ1Zc/nOw==",
              "CFU26EsWfRkJMWvjGYBriw==",
              "tTGPWdxwASSAv+QVjPolHQ==",
              "iayncEY9zdKh3YlvIXB1kQ==",
              "u94cpx1DoTx3u3Pajo6FQA==",
              "30ciBfheKyd56oWn2oNYGg==",
              "rdZkf6UbyW8PFnV+oTzzcw==",
              "hMBYrITTdnah1AkgFOK05A==",
              "i695cs0jEw9aBIQbak9Ivw==",
              "JHoEu9dLu6gbGsS0sF1DOQ==",
              "mP3SJMHdYQIBvX68Eq4XfA==",
              "W/52laXxwzkGNWoL0n3FNA==",
              "yVnSaGrvwzjgwJXerXQ/kw=="
            ]
          },
          {
            "wordIdx": "506690",
            "merkleComponent": [
              "+wocAF6rSzTEk7AkZU9+Cw==",
              "s8qMmS7FhidhtTL3SeNW5w==",
              "tPxO7jCi1jHhipzajoANnQ==",
              "xebfmcZfqANc/is7uzU76g==",
              "jWZDMaekcNA8cG7D7kWwzA==",
              "VLDZcATswhQaSxW74smJmw==",
              "nMrBT/y+yk6ro78JkOo/Xw==",
              "xpDzB1D2yFqbMQm8RW9tUw==",
              "Kv1c59DdaazsqbD8ZuqDxw==",
              "VLPHnUfQaKKmuz4STB1B3g==",
              "1h6Kat+m8cOtK4GaEuNuhg==",
              "r4D9rH5HtJZSlpJX1C10Fw==",
              "Hgjy1wvpWP6v7FZ8gbDcAg==",
              "EwaQLRR5ezK6XhPz+Wm/Mg==",
              "FAol3XWveOoaeVwnk9fZjg==",
              "eBqY8K8msY3vLzXBpHtjaw==",
              "YMvnexQfXwrOAwU34V8S8w==",
              "pDAx/x9UllVrnGlxbE/OPg==",
              "qCe/Wzq4Lhp8MAROtmK3QA==",
              "mP3SJMHdYQIBvX68Eq4XfA==",
              "W/52laXxwzkGNWoL0n3FNA==",
              "yVnSaGrvwzjgwJXerXQ/kw=="
            ]
          },
          {
            "wordIdx": "1817637",
            "merkleComponent": [
              "tI6BDEYzAlSfCvStoY8CTQ==",
              "lQTSpjalZyId0vbSndPlyw==",
              "hzRW7MFvcRPGume/O3VhZQ==",
              "EDtPv0edKhiNSG9hNEpneA==",
              "BYv1qvHEVxXcJqW0WfcrvA==",
              "FBMxFOxnQuSkm6C1q/Hg0g==",
              "FD1OiqDuwVnzTLB61M4LUg==",
              "a7IdZeNb6oH4twqVWx8h7g==",
              "0TYaegu0CLL+XmDk2CiTeA==",
              "AShgOoI8SCjbTXuRsbX6yw==",
              "SP5Ey3z08I+ETL8BogQLQA==",
              "HBMxKhvXZN3BCJi+ilkGyA==",
              "AJgOMjl50dNsqn5DiiVOPg==",
              "EsnLfNocCoxxroODXg3F+A==",
              "W0mWhDYnckkLEMtw9VgxWg==",
              "ZhIFMUOiUzNzaPk8c+6dWw==",
              "eCnUA7y8cGPA1JCZkxC0Qw==",
              "SZedbjVbSO7E9hS2nzpdGg==",
              "UngG3DAXAWa+Mq9bfAEcnA==",
              "YtfwFUNNddJfwZgzBJkTYA==",
              "aglDFJPkgt1ohEC+oG25cw==",
              "PVniIiKb38aQ8fHYZZi8mQ=="
            ]
          },
          {
            "wordIdx": "1827266",
            "merkleComponent": [
              "1wLMF3sZXOjNrElSjw3EvQ==",
              "pXsAwc7hH0vPqxWMqUuRSw==",
              "OUpuEv9JxMOJAiO3bbQ7UQ==",
              "KrRArQlMmOfhq8EDzmHXjg==",
              "i8sywAqwCCOgMlPuLcEsQg==",
              "pdUDjnHf1NFRIxhUIGiWvw==",
              "LkXSAvLVoKvkF90M3p+8cQ==",
              "6QzjB62LyyW5GdWxAwNkvQ==",
              "In7BUw6+2c1bIoo3UuBPOQ==",
              "vGo591jymJiBZid7XaWseg==",
              "HvuF2Cs8GaGSnZQ4Ae8adA==",
              "7XQyRTURiqIq+htxIbWtyQ==",
              "zwP1Ia44N3OoFnLLy0MFNg==",
              "oeQv9KASepp3qKEZt9p6Vw==",
              "HDTxZda8haKLrRCPUdI7ww==",
              "bLuF6AGfQUdJsG5/L02YDQ==",
              "eCnUA7y8cGPA1JCZkxC0Qw==",
              "SZedbjVbSO7E9hS2nzpdGg==",
              "UngG3DAXAWa+Mq9bfAEcnA==",
              "YtfwFUNNddJfwZgzBJkTYA==",
              "aglDFJPkgt1ohEC+oG25cw==",
              "PVniIiKb38aQ8fHYZZi8mQ=="
            ]
          },
          {
            "wordIdx": "397309",
            "merkleComponent": [
              "7QHhriZO2KloV9hl8/0UCw==",
              "gS5ODLYB9+TlU5PSpsWWvA==",
              "ftbpR0dnWDaY5JPTeQfliQ==",
              "FDMk24wnCSl/Ysgp7/hP9w==",
              "RlYIN2q6dGc1DsllGealkg==",
              "KSR5vzkKvjXuOqfzeh2TnA==",
              "vXx9qG/jrZNpNTq06ArywA==",
              "H4ociIrdclwg8e5hPHC/Zw==",
              "9Ml2+CQAQk9jOLrrLSVGzQ==",
              "x/DuC7ljgqlx4keDCYpO4w==",
              "xwGUKL4l6zoBbTqZavtXxA==",
              "7/Cw188UgfbG1DCx3RIICw==",
              "q+fWuu+RHApQudQZuu92/A==",
              "d8qak0yAkn6n0lgiNJDglA==",
              "HuC6eJZ+j90ZSofDIDM6HA==",
              "dLtgUlms/gFOprWcMBmZmQ==",
              "SQbM+iUVT2W8ALq1fM8/0A==",
              "D//bHP0yxOP9SRfAP48IMA==",
              "qCe/Wzq4Lhp8MAROtmK3QA==",
              "mP3SJMHdYQIBvX68Eq4XfA==",
              "W/52laXxwzkGNWoL0n3FNA==",
              "yVnSaGrvwzjgwJXerXQ/kw=="
            ]
          }
        ],
        "merkleRootHash": "eBb92YYvkZriLGCls1MGsGm5xzGtCGoWsWm9yv+yQLA=",
        "utxoRootHash": "1Zv6cAVqG5tIo4Ny2m3k5jHjWHHkigz6QvCkbqDe08Y=",
        "snowHash": "AAAAAwZpc9j5sEWssIBTvAjahVSe4EIxfWFC/fwKtTw=",
        "version": 1,
        "nonce": "16gn3S00cno7DNEv",
        "timestamp": "1551848390607",
        "target": "AAAAu0FNR+UgLt5SGU+d1qZ1c5vbYjpmXQENKENF5QE="
      },
      "transactions": [
        {
          "innerData": "CAEQARoWCOrIAhIQc25vdyB0ZXN0IGEgcGxvdyobCKDLmAESFJ71L/PCK2kHAbQp7FLx1DBo9Of5KhsI4JXTFhIUMajVdpjXQsYuqDUpECcXiRUnS+o=",
          "txHash": "eBb92YYvkZriLGCls1MGsGm5xzGtCGoWsWm9yv+yQLA="
        }
      ]
    }
  },
  "id": "0",
  "jsonrpc": "2.0"
}

get_unspent

Get all unspent outputs in the client.

{
  "jsonrpc": "2.0",
  "method": "get_unspent",
  "id": "0"
}
{
  "result": {
    "unspent": [
      {
        "address": "snowtest:y7mwxfv799l3lwqw4dcfmdzdql3ghtyuakm72le5",
        "src_tx_out_idx": 0,
        "src_tx": "d12824a0f6bdf10d697a85eed8e609ddc6f5f0823c862d8cf363e4438635b55f",
        "value": 400000000000,
        "confirmed": true
      },
      {
        "address": "snowtest:kwv3dsf5jlvlmgerhjy56wrhjf2rfr4ucm07wnep",
        "src_tx_out_idx": 0,
        "src_tx": "3855df061bb6ece61a51329380f70988bdbe999f3093976b882c4b6fde29e978",
        "value": 14999999093,
        "confirmed": true
      },
      {
        "address": "snowtest:u62g3790cg4lm0gsz6q8jtm3025zt5yn2en77scm",
        "src_tx_out_idx": 1,
        "src_tx": "40871fcabd7e029920c58c82ea5d28fb947f9ec832389c31a35b826777eb8676",
        "value": 45852000000,
        "confirmed": true
      },
      {
        "address": "snowtest:rwzjykzctzla9y62u9xx7yvmk6tkazqhenp48f0p",
        "src_tx_out_idx": 0,
        "src_tx": "1b7d5d0502dfe5de22c5fb30e58fef20dc332da51e3e0ef55c061ba79c616ca0",
        "value": 49974999233,
        "confirmed": true
      },
      {
        "address": "snowtest:09ftetv40ugkg9pv09r6aw53wmuqc56v5klwwyy0",
        "src_tx_out_idx": 1,
        "src_tx": "a07228f2313a76d468412a439cc87a87389761a67950c32c898d47edcbb8a1df",
        "value": 19974999233,
        "confirmed": true
      },
      {
        "address": "snowtest:js0e77fm3kx47a3p8uwe2apk6tzuj8xudjzjyhsh",
        "src_tx_out_idx": 1,
        "src_tx": "a68bf5ef06915a979290b2b2076bb2ef618921522bdce12d5e7f907911a58ac5",
        "value": 12430000000,
        "confirmed": true
      }
    ]
  },
  "id": "0",
  "jsonrpc": "2.0"
}

Or query a specific address, which doesn't need to be in the wallet.

{
  "jsonrpc": "2.0",
  "method": "get_unspent",
  "id": "0",
  "params": {
    "address": "p6ngj8zjd2k88f7md2s8ye2qdryzv4lnz80z20m8"
  }
}
{
  "result": {
    "unspent": [
      {
        "address": "snowtest:p6ngj8zjd2k88f7md2s8ye2qdryzv4lnz80z20m8",
        "src_tx_out_idx": 0,
        "src_tx": "f5b539d7725e8fbd2c04d91cdaa92ae7b844a32f37a0e6d26c9b7972423c886b",
        "value": 30332107417,
        "confirmed": true
      }
    ]
  },
  "id": "0",
  "jsonrpc": "2.0"
}

get_status

Returns node status and balance.

{
  "jsonrpc": "2.0",
  "method": "get_status",
  "id": "0"
}
{
  "result": {
    "node_status": {
      "connectedPeers": 6,
      <BUNCH MORE NODE STATUS STUFF, SUPER FUN>
      ...
    },
    "balance": {
      "spendable": "543231997559",
      "unconfirmed_snow": 0,
      "spendable_snow": 543231.997559,
      "confirmed": "543231997559",
      "confirmed_snow": 543231.997559
    }
  },
  "id": "0",
  "jsonrpc": "2.0"
}

import_wallet

Imports wallet data, in the same format used by the command line 'export', 'export_watch_only' and 'import' commands.

The format for the private key is PKCS8 encoded base64. The format for the public key is X509 encoded base64. On import, the public and private key pair are tested to make sure Snowblossom can parse them and that something signed with the private key is verified by the public key.

Example with just an address spec for watch only wallet

{
  "jsonrpc": "2.0",
  "method": "import_wallet",
  "id": "import",
  "params": {
    "wallet": {
      "addresses": [
        {
          "requiredSigners": 1,
          "sigSpecs": [
            {
              "signatureType": 1,
              "publicKey": "A91uzlbcu9kO2dSDj6VWzu2Z8zZN/sNP1411hWCDFivl"
            }
          ]
        }
      ]
    }
  }
}
{
  "result": {
    "addresses": [
      "snowtest:kumvfk3070dknv00xzjhf4jq2pezk477nv0nm6g7"
    ],
    "keys": []
  },
  "id": "import",
  "jsonrpc": "2.0"
}

Example with a public and private key pair and associated address:

{
  "jsonrpc": "2.0",
  "method": "import_wallet",
  "id": "import",
  "params": {
    "wallet": {
      "keys": [
        {
          "signatureType": 1,
          "publicKey": "A91uzlbcu9kO2dSDj6VWzu2Z8zZN/sNP1411hWCDFivl",
          "privateKey": "MIGNAgEAMBAGByqGSM49AgEGBSuBBAAKBHYwdAIBAQQgZ8mfHBR27RX5KjoSxbJf/n1maefiYqaY3gVxFne4mZCgBwYFK4EEAAqhRANCAATdbs5W3LvZDtnUg4+lVs7tmfM2Tf7DT9eNdYVggxYr5SOAZXVYaC4xpLNjXl2ULU09mZeAj8EyumriVusVELMJ"
        }
      ],
      "addresses": [
        {
          "requiredSigners": 1,
          "sigSpecs": [
            {
              "signatureType": 1,
              "publicKey": "A91uzlbcu9kO2dSDj6VWzu2Z8zZN/sNP1411hWCDFivl"
            }
          ]
        }
      ]
    }
  }
}
{
  "result": {
    "addresses": [
      "snowtest:kumvfk3070dknv00xzjhf4jq2pezk477nv0nm6g7"
    ],
    "keys": [
      "03dd6ece56dcbbd90ed9d4838fa556ceed99f3364dfec34fd78d75856083162be5"
    ]
  },
  "id": "import",
  "jsonrpc": "2.0"
}


get_address_balance

{
  "jsonrpc": "2.0",
  "method": "get_address_balance",
  "id": "whatever",
  "params": {
    "address": "3yv92xeqn92cngmsa3dx2d5z48aqg9t667ccpvgh"
  }
}
{
  "result": {
    "balance": {
      "unconfirmed_snow": 0,
      "flake_confirmed": 2225000000,
      "spendable_snow": 2225,
      "flake_spendable": 2225000000,
      "flake_unconfirmed": 0,
      "confirmed_snow": 2225
    },
    "history": {
      "total_received_snow": 2325.252,
      "transaction_count": 12,
      "flake_total_received": 2325252000
    }
  },
  "id": "whatever",
  "jsonrpc": "2.0"
}

get_address_history

{
  "jsonrpc": "2.0",
  "method": "get_address_history",
  "id": "whatever",
  "params": {
    "address": "szg2hj2aceldsfyffpheqylqpr4c747rqjnjlxm0"
  }
}
{
  "result": {
    "tx_list": [
      {
        "tx_hash": "761a03ecb2eb2537c4d33f4e23699d084ea4133a49632617a2e348e0fa4f8a89",
        "block_height": 132894
      },
      {
        "tx_hash": "afb7130e1b553d54178a1e87b772412a5fd6dbf2561be4d93d0c8413d02badf3",
        "block_height": 132894
      },
      {
        "tx_hash": "9fb7b1556b4ad33af580006ac6d78ec5246ce8b954067513641b494867a3968f",
        "block_height": 132894
      },
      {
        "tx_hash": "0e82fdaf5206049bcdaf4408d6a7f63e503d1274e6dc5f5f83843c9f601f672d",
        "block_height": 132894
      },
      {
        "mempool": true,
        "tx_hash": "2e2ee6f412b5930537138cdb35e11349d7613ca74ad2a816bce28a06a5f4b60b"
      }
    ]
  },
  "id": "whatever",
  "jsonrpc": "2.0"
}

MrPlow

If an rpc_port is specified, then MrPlow supports RPC commands.

getfoundblocks

returns number of found blocks and lists them, most recent first

curl -d '{ "jsonrpc": "2.0", "method":"getfoundblocks", "id":"whatever"}' http://localhost:13331/
{
  "result": {
    "found_blocks": 6,
    "hashes": [
      "000000ee7e172390dbd6a477aad2d5be6c4abe531f13efe16f95e0d83e6d0e21",
      "00000027caf1e5f135ef523dc6b44f8eb338fe8a5c3bfb55734a15b0f99cb486",
      "000000e804d55f2253f2df37d83028b6643f680d0e01edcf663e907790b57d19",
      "0000007758531fd85463dc4e2ec8a3b803655cfab6f4ba11e904d4e297849068",
      "000000c6fd193a348ed4dfb01e32bd7947a85e6acda62647aa0beadb6c835fac",
      "000000202452850901943ce74b8e3b55fc51b30ac21259ba21b090715a7182d3"
    ]
  },
  "id": "whatever",
  "jsonrpc": "2.0"
}

getstats

returns a variety of current statistics

curl -d '{ "jsonrpc": "2.0", "method":"getstats", "id":"whatever"}' http://localhost:13331/ | jq .
{
  "result": {
    "found_blocks": 7,
    "share_map": {
      "snowtest:czq7040pjz97vt3smu5maz594juw033duaf4v6yu": 22
    },
    "rates": {
      "total": {
        "60000": 69905.06666666667,
        "300000": 13981.013333333334,
        "900000": 4660.337777777778,
        "3600000": 1165.0844444444444
      },
      "miners": {
        "snowtest:czq7040pjz97vt3smu5maz594juw033duaf4v6yu": {
          "60000": 69905.06666666667,
          "300000": 13981.013333333334,
          "900000": 4660.337777777778,
          "3600000": 1165.0844444444444
        }
      }
    },
    "connections": 1
  },
  "id": "whatever",
  "jsonrpc": "2.0"
}