{"id":52506,"date":"2019-11-10T00:00:00","date_gmt":"2019-11-09T21:00:00","guid":{"rendered":"https:\/\/prohoster.info\/blog\/blog_prohoster\/kak-napisat-smart-kontrakt-na-python-v-seti-ontology-chast-1-blockchain-block-api"},"modified":"2020-02-18T14:00:15","modified_gmt":"2020-02-18T11:00:15","slug":"kak-napisat-smart-kontrakt-na-python-v-seti-ontology-chast-1-blockchain-block-api","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/kak-napisat-smart-kontrakt-na-python-v-seti-ontology-chast-1-blockchain-block-api","title":{"rendered":"Hogyan \u00edrjunk okosszerz\u0151d\u00e9st Pythonban az Ontology h\u00e1l\u00f3zaton. 1. r\u00e9sz: Blockchain &#038; Block API","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"Hogyan \u00edrjunk okos szerz\u0151d\u00e9st Python nyelven az Ontology h\u00e1l\u00f3zaton. 1. r\u00e9sz: Blockchain &amp; Block API\" src=\"\/wp-content\/uploads\/2019\/11\/4748f7bfd5e6c0b7a17ec511d22313df.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nEz az els\u0151 r\u00e9sze a sorozatnak, amely oktat\u00f3 cikkeket tartalmaz az Ontology blokkl\u00e1ncon v\u00e9grehajtand\u00f3 okosszerz\u0151d\u00e9sek Python nyelvben t\u00f6rt\u00e9n\u0151 l\u00e9trehoz\u00e1s\u00e1r\u00f3l, okosszerz\u0151d\u00e9s-fejleszt\u0151 eszk\u00f6z seg\u00edts\u00e9g\u00e9vel. <noindex><a rel=\"nofollow\" href=\"https:\/\/smartx.ont.io\/\">SmartX<\/a><\/noindex>. <\/p>\n<p>Ebben a cikkben az Ontology okosszerz\u0151d\u00e9s API-val val\u00f3 ismerked\u00e9ssel kezdj\u00fck. Az Ontology okosszerz\u0151d\u00e9s API-ja 7 modulra oszlik: <\/p>\n<ol>\n<li>Blockchain &amp; Block API, <\/li>\n<li>Runtime API, <\/li>\n<li>Storage API, <\/li>\n<li>Native API, <\/li>\n<li>Upgrade API, <\/li>\n<li>Execution Engine API \u00e9s <\/li>\n<li>Static &amp; Dynamic Call API.<\/li>\n<\/ol>\n<p>\nA Blockchain &amp; Block API az Ontology okosszerz\u0151d\u00e9s rendszer\u00e9nek alapvet\u0151 r\u00e9sze. A Blockchain API t\u00e1mogatja az alapvet\u0151 blokkl\u00e1nc-lek\u00e9rdez\u00e9si m\u0171veleteket, mint p\u00e9ld\u00e1ul az aktu\u00e1lis blokk magass\u00e1g\u00e1nak lek\u00e9r\u00e9se, m\u00edg a Block API az alapvet\u0151 blokklek\u00e9rdez\u00e9si m\u0171veleteket t\u00e1mogatja, mint p\u00e9ld\u00e1ul egy adott blokk tranzakci\u00f3inak sz\u00e1m\u00e1nak lek\u00e9rdez\u00e9s\u00e9t.<\/p>\n<p><b>Kezdj\u00fcnk hozz\u00e1!<\/b><\/p>\n<p>El\u0151sz\u00f6r is hozzon l\u00e9tre egy \u00faj szerz\u0151d\u00e9st a <noindex><a rel=\"nofollow\" href=\"https:\/\/smartx.ont.io\/#\">SmartX<\/a><\/noindex>, majd k\u00f6vesse az al\u00e1bbi utas\u00edt\u00e1sokat.<br \/>\n <noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h3>1. Hogyan haszn\u00e1ljuk a Blockchain API-t<\/h3>\n<p>\nAz okosszerz\u0151d\u00e9sek funkci\u00f3ira mutat\u00f3 hivatkoz\u00e1sok azonosak a Python hivatkoz\u00e1sokkal. Az \u00d6n ig\u00e9nyei szerint behelyettes\u00edtheti a megfelel\u0151 funkci\u00f3kat. P\u00e9ld\u00e1ul az al\u00e1bbi utas\u00edt\u00e1s beviszi a GetHeight \u2013 funkci\u00f3t az aktu\u00e1lis blokk magass\u00e1g\u00e1nak lek\u00e9r\u00e9s\u00e9re, \u00e9s a GetHeader \u2013 funkci\u00f3t a blokk fejl\u00e9c\u00e9nek lek\u00e9r\u00e9s\u00e9re.<\/p>\n<pre><code class=\"python\">from ontology.interop.System.Blockchain import GetHeight, GetHeader<\/code><\/pre>\n<p><\/p>\n<h4>GetHeight<\/h4>\n<p>\nA GetHeight haszn\u00e1lata a blokkl\u00e1nc legutols\u00f3 blokk sorrendi sz\u00e1m\u00e1nak lek\u00e9r\u00e9s\u00e9re, ahogy az al\u00e1bbi p\u00e9ld\u00e1ban l\u00e1that\u00f3. Az utols\u00f3 p\u00e9lda kedv\u00e9\u00e9rt kihagyjuk a Main funkci\u00f3t, de sz\u00fcks\u00e9g eset\u00e9n hozz\u00e1adhatja.<\/p>\n<pre><code class=\"python\">from ontology.interop.System.Runtime import Notify\nfrom ontology.interop.System.Blockchain import GetHeight\ndef Main(operation):\n    if operation == 'demo':\n        return demo()\n    return False\n\ndef demo():\n    height=GetHeight()\n    Notify(height) # print height\n    return height #return height after running the function<\/code><\/pre>\n<p><\/p>\n<h4>GetHeader<\/h4>\n<p>\nA GetHeader a blokk fejl\u00e9c\u00e9nek lek\u00e9r\u00e9s\u00e9re szolg\u00e1l, a param\u00e9ter a blokk sorrendi sz\u00e1ma a blokkl\u00e1ncon. P\u00e9lda:<\/p>\n<pre><code class=\"python\">from ontology.interop.System.Runtime import Notify\nfrom ontology.interop.System.Blockchain import GetHeader\ndef demo():\n    block_height=10\n    header=GetHeader(block_height) \n    Notify(header)\nreturn header<\/code><\/pre>\n<p><\/p>\n<h4>GetTransactionByHash<\/h4>\n<p>\nA GetTransactionByHash a tranzakci\u00f3 megszerz\u00e9s\u00e9re szolg\u00e1l a tranzakci\u00f3s hash alapj\u00e1n. A tranzakci\u00f3s hash-t a <i>GetTransactionByHash <\/i>param\u00e9terekk\u00e9nt k\u00fcldj\u00fck bytearray form\u00e1tumban. A funkci\u00f3 kulcsa a tranzakci\u00f3s hash hex form\u00e1tum\u00fa konvert\u00e1l\u00e1sa bytearray form\u00e1tumba. Ez fontos l\u00e9p\u00e9s. K\u00fcl\u00f6nben hib\u00e1t kapna, amely azt jelzi, hogy nincs blokk ezzel a hash-blokkal. Vegy\u00fcnk egy hex form\u00e1tum\u00fa tranzakci\u00f3s hash-t p\u00e9ld\u00e1nak, hogy \u00e1tkonvert\u00e1ljuk bytearray form\u00e1tumba. A p\u00e9lda a k\u00f6vetkez\u0151k\u00e9ppen n\u00e9z ki:<\/p>\n<pre><code class=\"python\">9f270aa3a4c13c46891ff0e1a2bdb3ea0525669d414994aadf2606734d0c89c1<\/code><\/pre>\n<p>\nEl\u0151sz\u00f6r is, ford\u00edtsa meg a tranzakci\u00f3s hash-t:<\/p>\n<pre><code class=\"python\">c1890c4d730626dfaa9449419d662505eab3bda2e1f01f89463cc1a4a30a279<\/code><\/pre>\n<p>\nA fejleszt\u0151k ezt a l\u00e9p\u00e9st a SmartX \u00e1ltal biztos\u00edtott Hex Number (kis endian) Sz\u00e1m konvert\u00e1l\u00f3 eszk\u00f6zzel tudj\u00e1k v\u00e9grehajtani.<\/p>\n<p>Ezut\u00e1n alak\u00edtsa \u00e1t az \u00edgy kapott eredm\u00e9nyt bytearray form\u00e1tumba:<\/p>\n<pre><code class=\"python\">{0xc1,0x89,0x0c,0x4d,0x73,0x06,0x26,0xdf,0xaa,0x94,0x49,0x41,0x9d,0x66,0x25,0x05,0xea,0xb3,0xbd,0xa2,0xe1,0xf0,0x1f,0x89,0x46,0x3c,0xc1,0xa4,0xa3,0x0a,0x27,0x9f}<\/code><\/pre>\n<p>\nEzt a SmartX \u00e1ltal biztos\u00edtott String Byte Array \u00e1talak\u00edt\u00f3 eszk\u00f6zzel teheti meg. V\u00e9g\u00fcl konvert\u00e1lja az \u00edgy kapott bytearray-t hasonl\u00f3 stringg\u00e9:<\/p>\n<pre><code class=\"python\">xc1x89x0cx4dx73x06x26xdfxaax94x49x41x9dx66x25x05xeaxb3xbdxa2xe1xf0x1fx89x46x3cxc1xa4xa3x0ax27x9f<\/code><\/pre>\n<p>\n\u00cdme egy p\u00e9lda a GetTransactionByHash f\u00fcggv\u00e9nyre, amely a tranzakci\u00f3t a tranzakci\u00f3 hash alapj\u00e1n szerzi meg:<\/p>\n<pre><code class=\"python\">from ontology.interop.System.Blockchain import GetTransactionByHash\ndef demo():\n    # tx_hash=\"9f270aa3a4c13c46891ff0e1a2bdb3ea0525669d414994aadf2606734d0c89c1\"    \n    tx_hash=bytearray(b\"xc1x89x0cx4dx73x06x26xdfxaax94x49x41x9dx66x25x05xeaxb3xbdxa2xe1xf0x1fx89x46x3cxc1xa4xa3x0ax27x9f\")\n    tx=GetTransactionByHash(tx_hash)\n    return tx<\/code><\/pre>\n<h4>GetTransactionHeight<\/h4>\n<p>\nA GetTransactionHeight-t a tranzakci\u00f3 magass\u00e1g\u00e1nak megszerz\u00e9s\u00e9re haszn\u00e1lj\u00e1k a tranzakci\u00f3 hash alapj\u00e1n. Vegy\u00fck a fenti p\u00e9ld\u00e1b\u00f3l sz\u00e1rmaz\u00f3 hash-t:<\/p>\n<pre><code class=\"python\">from ontology.interop.System.Blockchain import  GetTransactionHeight\ndef demo():\n    #   tx_hash=\"9f270aa3a4c13c46891ff0e1a2bdb3ea0525669d414994aadf2606734d0c89c1\"    \n    tx_hash=bytearray(b\"xc1x89x0cx4dx73x06x26xdfxaax94x49x41x9dx66x25x05xeaxb3xbdxa2xe1xf0x1fx89x46x3cxc1xa4xa3x0ax27x9f\")\n    height=GetTransactionHeight(tx_hash)\n    return height<\/code><\/pre>\n<p><\/p>\n<h4>GetContract<\/h4>\n<p>\nA fejleszt\u0151k a GetContract f\u00fcggv\u00e9nyt haszn\u00e1lhatj\u00e1k a szerz\u0151d\u00e9s hash alapj\u00e1n t\u00f6rt\u00e9n\u0151 megszerz\u00e9s\u00e9re. A szerz\u0151d\u00e9s hash \u00e1talak\u00edt\u00e1s\u00e1nak folyamata megegyezik a fent eml\u00edtett tranzakci\u00f3 hash \u00e1talak\u00edt\u00e1s\u00e1val.<\/p>\n<pre><code class=\"python\">from ontology.interop.System.Blockchain import GetContract\ndef demo():\n    # contract_hash=\"d81a75a5ff9b95effa91239ff0bb3232219698fa\"    \n    contract_hash=bytearray(b\"xfax98x96x21x32x32xbbxf0x9fx23x91xfaxefx95x9bxffxa5x75x1axd8\")\n    contract=GetContract(contract_hash)\n    return contract<\/code><\/pre>\n<p><\/p>\n<h4>GetBlock<\/h4>\n<p>\nA GetBlock a blokk megszerz\u00e9s\u00e9re haszn\u00e1lhat\u00f3. K\u00e9t m\u00f3dja van egy adott blokk megszerz\u00e9s\u00e9nek.<\/p>\n<p><b>1. Blokk megszerz\u00e9se a blokk magass\u00e1ga alapj\u00e1n:<\/b><\/p>\n<pre><code class=\"python\">from ontology.interop.System.Blockchain import GetBlock\ndef demo():\n    block=GetBlock(1408)\n    return block<\/code><\/pre>\n<p>\n<b>2. Blokk megszerz\u00e9se a blokk hash alapj\u00e1n:<\/b><\/p>\n<pre><code class=\"python\">from ontology.interop.System.Blockchain import GetBlock\ndef demo():    \n    block_hash=bytearray(b'x16xe0xc5x40x82x79x77x30x44xeax66xc8xc4x5dx17xf7x17x73x92x33x6dx54xe3x48x46x0bxc3x2fxe2x15x03xe4')\n    block=GetBlock(block_hash)<\/code><\/pre>\n<p><\/p>\n<h3>2. Hogyan haszn\u00e1ljuk a Block API-t<\/h3>\n<p>\nH\u00e1rom el\u00e9rhet\u0151 f\u00fcggv\u00e9ny tal\u00e1lhat\u00f3 a Block API-ban: <i>GetTransactions<\/i>, <i>GetTransactionCount<\/i>, \u00e9s a <i>GetTransactionByIndex<\/i>. Ez\u00e9rt ezeket egyenk\u00e9nt megvitatjuk.<\/p>\n<h4>GetTransactionCount<\/h4>\n<p>\nA GetTransactionCount-t a tranzakci\u00f3k sz\u00e1m\u00e1nak megszerz\u00e9s\u00e9re haszn\u00e1lj\u00e1k az adott blokkra vonatkoz\u00f3an.<\/p>\n<pre><code class=\"python\">from ontology.interop.System.Blockchain import GetBlock\nfrom ontology.interop.System.Block import GetTransactionCount\ndef demo():\n    block=GetBlock(1408)\n    count=GetTransactionCount(block)\n    return count<\/code><\/pre>\n<p><\/p>\n<h3>GetTransactions<\/h3>\n<p>\nA fejleszt\u0151k haszn\u00e1lhatj\u00e1k a GetTransactions funkci\u00f3t, hogy megkapj\u00e1k az \u00f6sszes tranzakci\u00f3t a megadott blokkban.<\/p>\n<pre><code class=\"python\">from ontology.interop.System.Blockchain import GetBlock\nfrom ontology.interop.System.Block import GetTransactions \ndef demo():\n    block=GetBlock(1408)\n    txs=GetTransactions(block)\n    return txs<\/code><\/pre>\n<p><\/p>\n<h4>GetTransactionByIndex<\/h4>\n<p>\nA GetTransactionByIndex funkci\u00f3t haszn\u00e1ljuk egy adott tranzakci\u00f3 lek\u00e9r\u00e9s\u00e9re a megadott blokkban.<\/p>\n<pre><code class=\"python\">from ontology.interop.System.Blockchain import GetBlock\nfrom ontology.interop.System.Block import GetTransactionByIndex\ndef demo():\n    block=GetBlock(1408)\n    tx=GetTransactionByIndex(block,0) # az index 0-t\u00f3l kezd\u0151dik.\n    return tx<\/code><\/pre>\n<p>\nA teljes \u00fatmutat\u00f3t a weboldalunkon tal\u00e1lhatja. <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/punicasuite\/tutorials\/blob\/master\/smart-contracts-docs-cn\/course04_use_blockchain_api_in_smart_contract.md\">GitHub<\/a><\/noindex>.<\/p>\n<h3>Ut\u00f3sz\u00f3<\/h3>\n<p>\nA Blockchain &amp; Block API elengedhetetlen r\u00e9sze a okos szerz\u0151d\u00e9seknek, mivel ezeket haszn\u00e1lhatja blockchain \u00e9s blokkadatok lek\u00e9r\u00e9s\u00e9re az okos szerz\u0151d\u00e9sekben. A k\u00f6vetkez\u0151 cikkekben megvitatjuk, hogyan lehet haszn\u00e1lni a t\u00f6bbi API-t, \u00e9s megvizsg\u00e1ljuk azok interakci\u00f3j\u00e1t az Ontology blockchain-nal.<\/p>\n<blockquote><p>A cikket a Hashrate&amp;Shares szerkeszt\u0151s\u00e9ge ford\u00edtotta az OntologyRussia sz\u00e1m\u00e1ra. <noindex><a rel=\"nofollow\" href=\"https:\/\/hashrate-and-shares.ru\/kak-razrabotat-smart-kontrakt-s-pomoshchyu-python-v-seti-ontology-chast-pervaya\">kattint\u00e1s<\/a><\/noindex> <\/p><\/blockquote>\n<p> Fejleszt\u0151 vagy? Csatlakozz a technikai k\u00f6z\u00f6ss\u00e9g\u00fcnkh\u00f6z a <noindex><a rel=\"nofollow\" href=\"https:\/\/discord.gg\/4TQujHj\">Discord<\/a><\/noindex>. Ezen k\u00edv\u00fcl n\u00e9zd meg a <noindex><a rel=\"nofollow\" href=\"https:\/\/developer.ont.io\/\">Fejleszt\u0151k\u00f6zpontot<\/a><\/noindex> a weboldalunkon, ahol fejleszt\u0151i eszk\u00f6z\u00f6ket, dokument\u00e1ci\u00f3t \u00e9s sok m\u00e1st tal\u00e1lhat.<\/p>\n<h4>Ontology<\/h4>\n<p><\/p>\n<ul>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/ont.io\/\">Ontology weboldal<\/a><\/noindex> <\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/ontio\/\">GitHub<\/a><\/noindex> \/ <noindex><a rel=\"nofollow\" href=\"https:\/\/discord.gg\/pQRHtbD\">Discord<\/a><\/noindex><\/li>\n<li>Telegram <noindex><a rel=\"nofollow\" href=\"https:\/\/t.me\/OntologyNetwork\">Magyar<\/a><\/noindex> \/ <noindex><a rel=\"nofollow\" href=\"https:\/\/t.me\/OntologyAnnouncementsRu\">Orosz<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/twitter.com\/OntologyNetwork\">vagy a <\/a><\/noindex> \/ <noindex><a rel=\"nofollow\" href=\"https:\/\/www.reddit.com\/r\/OntologyNetwork\/\">Reddit <\/a><\/noindex><\/li>\n<\/ul>\n<p>Forr\u00e1s: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/474966\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u042d\u0442\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u0441\u0435\u0440\u0438\u0438 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u043c\u0430\u0440\u0442-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u043e\u0432 \u043d\u0430 Python \u0432 \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d \u0441\u0435\u0442\u0438 Ontology \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043c\u0430\u0440\u0442-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u043e\u0432 SmartX. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043d\u0430\u0447\u043d\u0451\u043c \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 API \u0441\u043c\u0430\u0440\u0442-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 Ontology. API \u0441\u043c\u0430\u0440\u0442-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 Ontology \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d \u043d\u0430 7 \u043c\u043e\u0434\u0443\u043b\u0435\u0439: Blockchain &amp; Block API, Runtime API, Storage API, Native API, Upgrade API, Execution Engine API \u0438 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":52507,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-52506","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/kak-napisat-smart-kontrakt-na-python-v-seti-ontology-chast-1-blockchain-block-api\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u041a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043c\u0430\u0440\u0442-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043d\u0430 Python \u0432 \u0441\u0435\u0442\u0438 Ontology. \u0427\u0430\u0441\u0442\u044c 1: Blockchain &amp; Block API | ProHoster\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/kak-napisat-smart-kontrakt-na-python-v-seti-ontology-chast-1-blockchain-block-api\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-11-09T21:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-02-18T11:00:15+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Hogyan \u00edrjunk okos szerz\u0151d\u00e9st Python nyelven az Ontology h\u00e1l\u00f3zaton. 1. r\u00e9sz: Blockchain &amp; Block API | ProHoster","description":"","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/kak-napisat-smart-kontrakt-na-python-v-seti-ontology-chast-1-blockchain-block-api","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u041a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043c\u0430\u0440\u0442-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043d\u0430 Python \u0432 \u0441\u0435\u0442\u0438 Ontology. \u0427\u0430\u0441\u0442\u044c 1: Blockchain &amp; Block API | ProHoster","og:url":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/kak-napisat-smart-kontrakt-na-python-v-seti-ontology-chast-1-blockchain-block-api","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-11-09T21:00:00+00:00","article:modified_time":"2020-02-18T11:00:15+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"52506","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-24 03:50:21","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 20:42:42","updated":"2026-01-24 03:50:21","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/52506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=52506"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/52506\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media\/52507"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=52506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=52506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=52506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}