zec

Zcash (ZEC)

Method: POST getblocktemplate

dropdown

POST getblocktemplate

If the request parameters include a 'mode' key, that is used to explicitly select between the default 'template' request or a 'proposal'.

Parameters

jsonrequestobject - string

Optional.

A json object in the following spec:

{

"mode":"template", - string, optional, This must be set to "template" or omitted,

"capabilities":[ "support" - client side supported feature, "longpoll", "coinbasetxn", "coinbasevalue", "proposal", "serverlist", "workid" ... ],

"longpoolid":"id" - string, optional, id to wait for

}

Request

curl --location --request POST 'https://zec.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "getblocktemplate",
"params": [null],
"id": "getblock.io"}'


Response

{
    "result": {
        "capabilities": [
            "proposal"
        ],
        "version": 4,
        "previousblockhash": "0000000000e3689a277ddeefae9e0d74408aa7246f17ba5dbd476078aa4654b3",
        "lightclientroothash": "db384c120fa4b01ce743ce449cde164d69f8c3a569b63c5120491bc85a5d2a6a",
        "finalsaplingroothash": "db384c120fa4b01ce743ce449cde164d69f8c3a569b63c5120491bc85a5d2a6a",
        "transactions": [
            {
                "data": "0400008085202f8901a89d118fc55d9168d5d3068312cda8c329910062f4d19b277d6949fa1bddd408000000006b483045022100c5a1243e958a222cddb49569afea399704a052608875d64ad2583aa214dfdb4d02206db6bf20f8e0043aedb5df8a5683f50aaaa314e1a08e4e3a687c97217277bc0d012103b1907ea036693b1c03d47a2f99ce10957a42c26f0dddf3b11d26fd82a2ba38edffffffff0200943eb40000000017a914cddb1ebe60957aeb560bdbfcf0702332c341fc5e873bdd35000f0000001976a914de74cf8460c995cff32bdc50ed3f3437fc78475d88ac00000000000000000000000000000000000000",
                "hash": "b2cdcf9c985de10c3a236ddc42ff41e173cc9607ff48a116cc575e0b70e0f9eb",
                "depends": [],
                "fee": 2350,
                "sigops": 1
            },
            {
                "data": "0400008085202f8901c3a98bab07531aa40bc09d35bc4d23277babf5e9d2170578e96b1726a79a9b0c000000006a4730440220423c790d4998068b083932bfe19bb78fb4e0eb1e5056b078dff587df15f095cc022038d3f9e11620e78a7e427335b4f4652e687fabd03461319285ef1a5f3061997c0121033f7cc6bb00d285d6ae60a3b801ed9246727f97b832a4a61a76163bc319a94300ffffffff03423f1701000000001976a91497eff84e17eb7796aa100e75bb3ff21e129c339388ac77500000000000001976a914f0c64f01007adcf93ef7e5f98de8bb4de2b2344e88acadca0000000000001976a91419346a4b490f05e0835f9a97af5d58824fd0383388ac00000000e81f15000000000000000000000000",
                "hash": "2c79777bcefb2dfbf99212a9164affe325346f5acaa046759f2a0d1ebf6743c7",
                "depends": [],
                "fee": 2349,
                "sigops": 3
            },
            {
                "data": "0400008085202f890126e6589e5530ccb8a9a450659d9a30d5db820e71f110ebe2b0baa98439917c334c0000006a473044022045ed944a03b442d186550c14269ba84d9e821c608704d75936a10dd74c8fc27d02202f443b0d831758cd12539bd1a121afad6d83cfefc86990f6b749740d43ab03e4012102d3364baef6ebfdd4d05d6f32f4499d3da3bf52116a96b4d28bfe927b734f6efbfeffffff3e1d1d0000000000001976a914114279203be9a3e54eea6e412ba21e7eb0463a0988ac28260000000000001976a914dc6ec78cfa81932970a13e1dc3bf1d7d94da326588ac691d0000000000001976a914ecd65c5ed55f4747f47277c1e9957bfb9cef2c3488ac791f0000000000001976a91469c8abe1773a91509a3b7e70ef062be9f9ab446388ac90280000000000001976a9142b49a26f66b424b2f64d01d4125d7d715fd66eaa88ac4a200000000000001976a914f2387167538577d85622d46236cf41781e46c7b288ace4210000000000001976a91403c3a9b0bde0ced2533d097d98c188b5e17dc1b788ac301a0000000000001976a914cd796443e6517808c9405001446f6062136b055088ac9b140000000000001976a914f5afabfff62317502de9f18aca492da9af4621c688ac8e080000000000001976a9141baec22f28f083b26e9aa785c3132810068ec91188ac76060000000000001976a914c05b9a2843739de8cc77c204cb7810078fa04bbc88ac95430000000000001976a914b5d0070121f1a1002404b5be8fb7d744e8792a5288acb71a0000000000001976a914f6f74195524d96f3214b267f6e1c6581b322428888acb8240000000000001976a914253ae3b564039f652b9b40cab9de74217f946cf888ac882e0000000000001976a9146703870749599e10bd86747465bc7c4e2c44233288ac63230000000000001976a9149427925956b8e80b4f38ee339f181a6b0e69557388ac00210000000000001976a914071d0ff77ddf249d2459b9ba7b16f73eac31829588ac0b060000000000001976a9143cd889f07cc245af41d202827b45c80ad69532f288acc51c0000000000001976a914ebadc0e3e4ac7b84dece62de93145d07c6faab0f88ac5c170000000000001976a9143d464ee20b68c4692b497f068b94f1682d7b64cd88ac20200000000000001976a91422fa67a1f0ca331ae94e0b2e460fc90c709fd7ab88ac3e1e0000000000001976a9140345cef0bc8f1fed414f5a019b1b7f4da342c97c88acbd250000000000001976a91468faff63dfc66b7bae50bb4b48d55750a084c36d88aca1280000000000001976a9145b1547d6f64f1a9eaeda96b96d31e9ed6173d6d988acaf220000000000001976a914a37df515ac929458d17b6fc5fd753bec2f5fffed88ac05290000000000001976a91410c7cc31cb15a453af447ad8e8e09608abef73e488ac860b0000000000001976a914d88ae73d972f43ffc33101cf87fb29777e7098d988ac7b120000000000001976a9143a5e13cae45aeb40d07c2fd3b2bad46f42a281f388ac49060000000000001976a914102afc2ad759d61e11934c2fcc951cc04a755d0388ac82050000000000001976a9149da39bbc991385c28f5d87aace08d9c7ca5a8bfc88ac67040000000000001976a914fdb2c6569f9554b9a760466b268341482d63108c88acb2160000000000001976a914d2d2184c028496d4b578257d7697189e72a95d7188ace7180000000000001976a9148329d1ff77a6d580dbac1302c00a4fe536d61d6288ac5f150000000000001976a9144016c0785d8db810425e5ca28a3f1b1e2dcb076088ac68000000000000001976a9149e843e79038161e63168727b2aa9087d43cb722288ac70000000000000001976a914d9af3bd1ab38ab9454ba7cdc903abb523371b56988ac480f0000000000001976a914d1424a70127698ea9523343b869621dc62da700d88ac580f0000000000001976a91413bdb61356e28428d1ad5259639f1c19807e38d988acb10c0000000000001976a9145243408fe333bba1e0d35057f2bbe9a3cd02cacc88ac54080000000000001976a914807b2831e111208ae7d4286cb43cb932b864647d88acc71e0000000000001976a914fbe0deac127ed6ed4a96334240dba1044974ee9088ac62130000000000001976a914d8d18eebf3ab18cc8cdccdcf7f02d2a71dc972e288ace80f0000000000001976a914a95948abf9d0502f9341c9a1d69cd70b6c832c9f88ac7c0f0000000000001976a9142c56eccc75f52ed5c0d18e743cd750e043beedf688acf0090000000000001976a9141df3c82d7e175b6192d518fe918e66080e2373b788ac98430000000000001976a914b82d8b4edd74c05a2557108597f69e684dbcbd1d88ac74000000000000001976a914e49df7987fd51cea7a0ac7d9fdf745ce4fa24bd988ac86040000000000001976a91427584da14faa527a3d68071298c1c3600b79fb6f88acab230000000000001976a914358419e2cba7548e8a3af3f1d896ef4ccf29713f88ac68000000000000001976a914c841eba39993218a5b18eafb20898df3c8f0161788ac881a0000000000001976a91422eef23c037298e32cca5bd99a33091d2d600aed88ac64000000000000001976a9141fb99bd71070f1c1d99b9e4256a4451e052f733e88aca6100000000000001976a91434438daa6b5c6d2c31739450b15e3848db48f68588ac76000000000000001976a91497b013f732e2a6a1e92d08278deab25267f777ea88acaa290000000000001976a914eda7e9c5956453ada44514ff6c5471f62619cb1288ac86040000000000001976a91494b44a37510df1474a39cc16df21764e3c939a9288ac34090000000000001976a914dd37b0c78d82afcb83b616c8a5914dd485d547fa88accc080000000000001976a91430497fdded1a546e4f1fd5c2a3b18a7dd5c9f35d88ac78040000000000001976a914ff877c517c82b5c4fafefabdf842451d291f391d88acc8040000000000001976a9148ce4fc6c67357483fab4d0bf13fe291c1ffe5dec88ac4ce5450e000000001976a9147e6859ddcff127040ba754a8fe930372d2d9a40f88accc030000000000001976a91492a72095587d2819dff1dd5bfef66f64b7e3c70188acb51f1500e81f15000000000000000000000000",
                "hash": "3672e30d9ed9a99e7b594217156b6d83ca07604c4df9d85eba0764b2400e0144",
                "depends": [],
                "fee": 22968,
                "sigops": 62
            },
            {
                "data": "0400008085202f8901a0d0c97ba230aad06913a0d10057afb02a95c8208e3b9e8fc37c387083cbc934000000006b483045022100ee071135aedbf86fc1f19b9162ab4702872d9434bda34d0ce179d0c45605c4c9022071596e4f610896aaedc8d3c61e216f5274e6c41441d29c34b2f8585106bf6f8e012103525a0e7db29bff41a865b10de6e12e1dfbd9bf2ff0ef1062bc7ba2768de7ed6effffffff0000000000e81f15005fd4b4feffffffff0001ed20e46fef0e3ab030d0659205c86bba0c33d44b4e5c38cf79d8e6f895fbbe5c2f6f8d035ba14010be1fc7c8ac96c9765f2edf6a426840933d2276ba4224c63d0cd5ea1f1394bbd59f1ca95f774cbe3f6c03d9e69d9d4f00e22f48cbcc449d6a30582890bddc71717c0088377c6965cf99c2dc0f07fec86ea55af0a9e6210ffb96f689ea14814e574b4894ac7ec32fdbf574d2c96c8330758bad5f9557477c870b9a9ae6ef0907b63a223c8ae30881fe02ec545cfb6f8384a793766093fc9b4725947ddba0f0ebabd17d1615f98eeb5fe634f2d349bb82970ea9aadd67b4ca6f08cd88c46a44b9b0e26daa7f162499f40a7bf735205a5f9e38a49be2d05cb63d8e35f87056378bb1df8677cc1ca9eea76d14edf57c12f5e0d536945de151983e0eb65288c1008a6cb910a1b85b26b157ad290cc43d0f6c31e570ce0c6a246f2642e85fa8e446da9c6b4c36977ec9af35446d2e48a0d482291acf5fe97b96206f142f4afed25d30e0c4c51da5d40235fcc391573b11206982b5cc96dcc3d2363f339c15c842c245817a0f9c2c681ad1d318cdf1ef5215b353e6fc55103c4e7b7a20f5fb5ab51237b51fee1b5fa1fb47ee4fa194ea36ce4303757cae47e0f41c702bc5a8d2e652b27c34621eca40c23fb847160a43fa06e6961f8e0637f424442abfd16de25d543f756106c7a5d6b53e1c1169ff4cbeca63b9130e7055466ac4a83cb51afda049e465e0784368721a7fdf150c445ba90ed6b972739a7270c5304e604d341549c6ec028b71b307986fcf1237bdcc67eb0fbec30727ef73e29e4c8cd74143194721aad55e3b061c5c10f18b18e7b57022de80f11087bc8bbc17c53fddf4c5a6e04257e5367ec6927db6bf0c5655a222202c6b1e798ecd759bff4fe6435eb5e132dfaa668d340f39d6461afc32cf53fe0a69464ade268b6820c9c84ad17cc5f7ba44a0eb5953104bb0b383c9eb94026b0bf31ec1e900a017879abcf28175b061fff59f52634d440ddc0c4e33f757ec5f3ddf2cf974042ddba2e9759f6c8f0a8502781e1ffa8f863d9f665f4125ece0ce900ee070ca372e47dccdaf46c5561aaa9ac09388ab342ca5244d2e1aa3a3a4b60822b08a14b54a7208864e661fbbf56a97050998254e3e83317b70f8b220eac0ed056457f2d8f017c54bf42222ed497ec99e6b171305fe08357d1b04c21e5598125217a1cb9671a6ff5befe9a4c7a50397ac9817c13426152fce70e0e0a305e3fbc747ff8af356143d1bf516fa6eaeabb581f7215153d70b33af8ef37ef44c6d6e1ef32ff628eb9a39f20a532ebc2955438f3196f099ac15096e63897edb86ff001b798f19dce8e603ef38c5010e56e7b531f261b3260fd14209cbaae0d2caba119f3e5f885b12776aef06d0091bfd244d75683a39ad9dd758489d4faf6fe43f07",
                "hash": "2ba2405be12b29f90205a6da6614b79970406980446a67b47d2b04a185d3cd50",
                "depends": [],
                "fee": 1000,
                "sigops": 0
            }
        ],
        "coinbasetxn": {
            "data": "0400008085202f89010000000000000000000000000000000000000000000000000000000000000000ffffffff0503c01f1500ffffffff047b22e70e000000001976a914ba2732e568a15ab97c8ad55f871cc62ac1bf465988ac40787d010000000017a914931fec54c1fea86e574462cc32013f5400b891298738c94d010000000017a914c1d33ded7edf633ca2592f2258d4c8c9ae28091587286bee000000000017a914d45cb1adffb5215a42720532a076f02c7c778c908700000000000000000000000000000000000000",
            "hash": "6c4b223ec78f1729d29ad007cdad890f9a91ffe968e1d06dce7f8ad985885cb5",
            "depends": [],
            "fee": -28667,
            "sigops": 1,
            "required": true
        },
        "longpollid": "0000000000e3689a277ddeefae9e0d74408aa7246f17ba5dbd476078aa4654b3354",
        "target": "0000000002a75900000000000000000000000000000000000000000000000000",
        "mintime": 1631192761,
        "mutable": [
            "time",
            "transactions",
            "prevblock"
        ],
        "noncerange": "00000000ffffffff",
        "sigoplimit": 20000,
        "sizelimit": 2000000,
        "curtime": 1631193206,
        "bits": "1c02a759",
        "height": 1384384
    },
    "error": null,
    "id": "getblock.io"
}