Skip to content

Example for type=2

ChMarina edited this page Apr 21, 2019 · 1 revision
// Request
curl -s -X POST --data '{"id":1, "version":"1.0.0", "method":"get-block-by-number", "params":{"number":356619, "type":2}}' 0.0.0.0:9999

// Result
{
  "jsonrpc":"2.0",
  "id":1,
  "result":
  {
    "type":"block",
    "hash":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad",
    "prev_hash":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667",
    "tx_hash":"ce1dbd1936ad573b29744ddcbf4e95bdd87e806cc3dc3eb6a4b1a6e284cd83cf",
    "number":356619,
    "timestamp":1555685314,
    "count_txs":8,
    "sign":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667",
    "size":1897,
    "fileName":"/data/metahash/20190419.blk",
    "signatures":
    [
{"from":"0x0028dd1ca2951fe554ef526d60ff55a64776ee5e033120ca91","to":"0x0028dd1ca2951fe554ef526d60ff55a64776ee5e033120ca91","value":0,"transaction":"232f974a28c2b36a30bbd7d9cf9b0b2982211d78b2dafda6c919fc86c3168287","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"30440220431429300c9afcb5828bdcd94a3162151a9717018f64723febad7f09b8faf4d6022071e5ec71e676edd5e789e4ff92029eb5b7ce68ae3178fdceb83c3e13ad9ea2de","publickey":"3059301306072a8648ce3d020106082a8648ce3d0301070342000444f13813e9688c4c41b1583b3241eb1efe9139de592b387ea27b5259e054db2acd2a3b72843876bd1b60f67ea73df14943ba3cc2cbf4b48d5a133e7a1233cccc","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x005140a0ae997aeae77c09d7d4ccf97aa65695a9a1e28812bd","to":"0x005140a0ae997aeae77c09d7d4ccf97aa65695a9a1e28812bd","value":0,"transaction":"549b493d0384719aa13ac33138665bfdd6c9d3fad33ac9b6523b26943f684fcb","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"30450220012a1497e680e7b500f64b3d95d402a5b3acf42f225fc53621eebcab839790c0022100f0e44178b9bbf15748d8f543f2ec28c7c118462b18b43c15c841cdacd8b5d135","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004a4f4c0050ba6f7b07d78307f1d4ad9961f4f4a34d2f3407e9d58f80b360e8ace0d0e16bae71488e0fc5284b31ef960e4bfa1d7da548dd43c625875aee868dfce","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x0057b301028c5e0c234bb35b611fc8d3d15c797fb39ef768a4","to":"0x0057b301028c5e0c234bb35b611fc8d3d15c797fb39ef768a4","value":0,"transaction":"e8940ba1678702c6bd2ab98c950b02e2094fcb429ae784addab54d1a432f1891","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"3046022100ee6a8f8e45bfec956114679a47178b48300940731a2b3628d2520ed5ec5bceaf022100f517aa4306353576e00cb26e0e49f7811494d6e2e044a46fe6e5ac7b3432eddb","publickey":"3059301306072a8648ce3d020106082a8648ce3d0301070342000426abf3781bd6de97e59bf247aff0cd60ddb0053932b35c18215da637398837f9f22fddada7dd16c568bfa0ed5fdf81801e54035105ea958d2cd9d2627af52df4","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x0069fce976a40fbd2c894f1fe635255fc16c80bfe17ce65f5e","to":"0x0069fce976a40fbd2c894f1fe635255fc16c80bfe17ce65f5e","value":0,"transaction":"69b1c7f1e6d89d15d8272da3c1d76a9bd1e8d5215f32c9ab693244fe51ecb019","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"3044022033499b47fa2230372cfbc85ff0e3457fa5d4607a7b6b28df7f9ed7aa5fd9e18802200dab49da0fa3db9f79d39f91e146ec596135f0c7ebc6fa71ba4232cd32680a1f","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004edd10457be891611b3905408284c527d3743217aed719cf9fe4b3337b74b8556376a0ad2bb2a997a4f681dcfca42bbfbfc4874aac7c8fff851f1f693e0986319","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x007fce3c1e56c67f963428b3dcdfc4400408918b843d1652ec","to":"0x007fce3c1e56c67f963428b3dcdfc4400408918b843d1652ec","value":0,"transaction":"bf95892904f0d8c72fc1412cf77ec7528447976298fd76b1d20d55e29de45f52","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"304502206e18fae366bd2cea4cfbdd9940ddd1647ac4776b6b6032bbd2ae4653488ce454022100b8dbee7b628d2f5af09bb674fbfb59ff3d22200094026cc6e6e6fd44ce8c2cec","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004d42e2c2f44bdc90cf0ef1b6c04d6c72890230e3fc71962ed1cf8846697976b323b2ac5b077e86d4379919b7072ab4d8605b0db1d7e59c97c445697e2df09b766","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x00a88a888d16a23991e73b4081b745eec0f56cdc7063baa360","to":"0x00a88a888d16a23991e73b4081b745eec0f56cdc7063baa360","value":0,"transaction":"de8978efb3cb633594af0d9937ac274649487efea8c727383bc8a926e6aa7a06","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"304502204e89ca72f4bf3ceec2a5b1b45589157ee97eb76b667ed4af8cdbdd547d1eb3a4022100e171f2e51c9e26b13a90b851d6329a6861e2b439fbbdf9afa13e5d9193834302","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004886d9fe32423473984eb0c6782c69e64d08e33c1c89c74d3925dab93c73aff72b670f482e2f753f9f7811198f37abe8fa873d8afc665a5801a183246cc997dcb","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"},
{"from":"0x00f3dc22cbe3519ce94e9bf12145d61789da0bfd26bbdf7999","to":"0x00f3dc22cbe3519ce94e9bf12145d61789da0bfd26bbdf7999","value":0,"transaction":"0451d9214e84b1a4cbbdccd01b5c82a30eda2232785e78e341e9208c12f94fa6","data":"2a763fae174fecf0851263fbb35438f85561c7edd081bef1014a001c7c52fbad","timestamp":1555685341,"type":"block","blockNumber":0,"signature":"3045022033d80754b37a69d515dfb6453367ab40979ce8eed0c780026e30927d6c8d898e022100dbe05a31cf65074381edc539b517e38accc636403de8bf31b8e43869ed92133f","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004a8dc0b349c7bbff11ee6d3106de19c13fddda24ddda3bbc0961f17d389e2f4426fd6ca8feaa8773bf316056906f2c0d9bc16e5f341e3ed389379329be039b0eb","fee":0,"realFee":0,"nonce":343568,"intStatus":1,"status":"ok"}
    ],
    "txs":
    [
{"from":"0x0028dd1ca2951fe554ef526d60ff55a64776ee5e033120ca91","to":"0x0028dd1ca2951fe554ef526d60ff55a64776ee5e033120ca91","value":0,"transaction":"08c18dd03422d58c0a5b654ee3a2fba6d60512b9c0812b509f432bdf0f04cb1c","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"3045022078626300369176c9d1d7007cc82d59e061372a7e3eea2cd4364ee50a84f3ca02022100cc5f2a95933701c4661c49a48bd6ce163a6e6e00d02332e4c8bf7a6808e7cefc","publickey":"3059301306072a8648ce3d020106082a8648ce3d0301070342000444f13813e9688c4c41b1583b3241eb1efe9139de592b387ea27b5259e054db2acd2a3b72843876bd1b60f67ea73df14943ba3cc2cbf4b48d5a133e7a1233cccc","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x005140a0ae997aeae77c09d7d4ccf97aa65695a9a1e28812bd","to":"0x005140a0ae997aeae77c09d7d4ccf97aa65695a9a1e28812bd","value":0,"transaction":"5838abd5c1660e7c0387ab48afc46fcd8d03c634bb42c815d4c7e2d613fad1bd","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"3045022100a66e0571d2c0aadea50366d827445000f815ff351ab2228c634ac94b17717924022001f4c6a425a148443eb337308ed4ba360982f8ad31a8f2ebfa644db26e46dd3b","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004a4f4c0050ba6f7b07d78307f1d4ad9961f4f4a34d2f3407e9d58f80b360e8ace0d0e16bae71488e0fc5284b31ef960e4bfa1d7da548dd43c625875aee868dfce","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x0057b301028c5e0c234bb35b611fc8d3d15c797fb39ef768a4","to":"0x0057b301028c5e0c234bb35b611fc8d3d15c797fb39ef768a4","value":0,"transaction":"8a6407c2647bcb5ceef179b99a5dd048c71bac3c377802b488e4929e360fbe22","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"3046022100abdb6304b822c975ff67426384aa3b24bb053afa2c477ff61fcc5f9d799408aa0221009b8765041f5424a4b0a74ba370fff6a8a83665c4e8ef8a8d41b22836ebb2d687","publickey":"3059301306072a8648ce3d020106082a8648ce3d0301070342000426abf3781bd6de97e59bf247aff0cd60ddb0053932b35c18215da637398837f9f22fddada7dd16c568bfa0ed5fdf81801e54035105ea958d2cd9d2627af52df4","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x0069fce976a40fbd2c894f1fe635255fc16c80bfe17ce65f5e","to":"0x0069fce976a40fbd2c894f1fe635255fc16c80bfe17ce65f5e","value":0,"transaction":"c8f21b8327e1b4c280d9c2a6f8bd2aca16da490905c87c8005f602152fbc836d","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"3046022100e5326675a02372c3a6ef67094d0252e44b87ef1c63ec0f2417a9832d12d82c4e022100919542872df496dcc81948c09b792a7302ba1e07cb5f37018754439ccb08fa64","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004edd10457be891611b3905408284c527d3743217aed719cf9fe4b3337b74b8556376a0ad2bb2a997a4f681dcfca42bbfbfc4874aac7c8fff851f1f693e0986319","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x007fce3c1e56c67f963428b3dcdfc4400408918b843d1652ec","to":"0x007fce3c1e56c67f963428b3dcdfc4400408918b843d1652ec","value":0,"transaction":"595e111997f70917da4979955e15f473b129e9d11f7ff190178c1f2d9124a45d","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"304402205285d03568f8b9d80c0282a039f80256bc49994995febb60c7dcec798c019d51022005c32cf3e7cdb9700d934e486c267a33e6db0e1f6114b532f36adafad64c3811","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004d42e2c2f44bdc90cf0ef1b6c04d6c72890230e3fc71962ed1cf8846697976b323b2ac5b077e86d4379919b7072ab4d8605b0db1d7e59c97c445697e2df09b766","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x00a88a888d16a23991e73b4081b745eec0f56cdc7063baa360","to":"0x00a88a888d16a23991e73b4081b745eec0f56cdc7063baa360","value":0,"transaction":"f9fbdfc60070db033ce3d29eb7f412de74c11d41875d782942557f51c65ec234","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"3045022100a57b1bc5c7e0bedd4a161177c2c004d84586b289fc51a50478b56b342926c38102201c7549c745c4baf23314af2508394226d39ab948fc2b77bff84e7a5eb0f14740","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004886d9fe32423473984eb0c6782c69e64d08e33c1c89c74d3925dab93c73aff72b670f482e2f753f9f7811198f37abe8fa873d8afc665a5801a183246cc997dcb","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x00f3dc22cbe3519ce94e9bf12145d61789da0bfd26bbdf7999","to":"0x00f3dc22cbe3519ce94e9bf12145d61789da0bfd26bbdf7999","value":0,"transaction":"8e90a2f74e80eb041f60499bfbc8e02ade728b327ee8a6d337e583793006f608","data":"795b6eece701bb7a0a36a44d576b1a23c6d15250d794b7086cb3db37401d7667","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"30450221008b9f1b270506c4c72946d92adeb8e5d599b8d3e54df765d5d706abfa9f45b6fc02201ed54b74a78c33eb27d6b720f504337150b11767e20210ed822b9c8a65e1981f","publickey":"3059301306072a8648ce3d020106082a8648ce3d03010703420004a8dc0b349c7bbff11ee6d3106de19c13fddda24ddda3bbc0961f17d389e2f4426fd6ca8feaa8773bf316056906f2c0d9bc16e5f341e3ed389379329be039b0eb","fee":0,"realFee":0,"nonce":343567,"intStatus":1,"status":"ok"},
{"from":"0x0044ee9eaae3813964ae88c497c49fab3d1aa98572873065a9","to":"0x009b6b84aa1e01f78e44f3975e5cb9abbcffbf5a4d6b4a8416","value":1100000000,"transaction":"2ac2409be26defdd6c18b250e1946eccd1bc6e7b962bf23d8fcd59afdfe5e075","data":"","timestamp":1555685314,"type":"block","blockNumber":356619,"signature":"304402202216721a3a3408448e4bf2f87fcaa1f49093be344db268fc906869dd30b48157022051b3b7cb051265e4c78e4361d3ce82ae57cb0c431873b4f330ceccaded844b34","publickey":"3059301306072a8648ce3d020106082a8648ce3d030107034200049ccbde1b087478744b858008b096379b5b4e42666925789e0b741d654c37df101afd7e959d6526815d74f8a74f9f0f4c73d03034b8c918e70d923becd7d7a1c4","fee":0,"realFee":0,"nonce":21,"intStatus":20,"status":"ok"}
    ]
  }
}
Clone this wiki locally