{"id":499,"date":"2022-01-09T14:48:18","date_gmt":"2022-01-09T13:48:18","guid":{"rendered":"https:\/\/cnftacademy.com\/?p=499"},"modified":"2022-03-21T10:55:57","modified_gmt":"2022-03-21T09:55:57","slug":"lezione-6-cardano-vending-machines-parte-1","status":"publish","type":"post","link":"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/","title":{"rendered":"Lezione 6: Cardano Vending machines parte 1"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; _builder_version=&#8221;4.9.1&#8243; custom_padding=&#8221;40px||80px|||&#8221; border_width_top=&#8221;3px&#8221; border_color_top=&#8221;gcid-52d8a241-99cd-47a8-828f-fd2d663beb2e&#8221; border_width_bottom=&#8221;3px&#8221; border_color_bottom=&#8221;gcid-52d8a241-99cd-47a8-828f-fd2d663beb2e&#8221; global_colors_info=&#8221;{%22gcid-52d8a241-99cd-47a8-828f-fd2d663beb2e%22:%91%22border_color_top%22,%22border_color_bottom%22%93}&#8221;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;3.25&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; custom_padding=&#8221;0px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;3.25&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_code module_class=&#8221;video-iframe&#8221; _builder_version=&#8221;4.13.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<iframe loading=\"lazy\" class=\"embed-responsive-item\" title=\"Lesson 5\" src=\"https:\/\/cnftacademy.s3.eu-west-2.amazonaws.com\/lezione6.mp4\" width=\"100%\" height=\"610px\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe>[\/et_pb_code][\/et_pb_column][\/et_pb_row][et_pb_row use_custom_gutter=&#8221;on&#8221; gutter_width=&#8221;2&#8243; _builder_version=&#8221;4.13.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.13.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text admin_label=&#8221;Text&#8221; _builder_version=&#8221;4.13.1&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; custom_margin=&#8221;||15px||false|false&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p dir=\"ltr\">Ecco il codice spiegato nel video:<\/p>\n<p>[\/et_pb_text][et_pb_code _builder_version=&#8221;4.13.1&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||50px||false|false&#8221; global_colors_info=&#8221;{}&#8221;]<textarea cols=\"100\" readonly=\"readonly\" rows=\"30\"> <!-- [et_pb_line_break_holder] -->import json<!-- [et_pb_line_break_holder] -->import requests<!-- [et_pb_line_break_holder] -->import subprocess<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->address=&#8221;ADDRESSVENDING&#8221;<!-- [et_pb_line_break_holder] -->url = &#8220;https:\/\/cardano-mainnet.blockfrost.io\/api\/v0\/addresses\/&#8221;+address+&#8221;\/utxos&#8221;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->payload={}<!-- [et_pb_line_break_holder] -->headers = {<!-- [et_pb_line_break_holder] -->  &#8216;project_id&#8217;: &#8216;SECRET&#8217;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->max=0<!-- [et_pb_line_break_holder] -->response = requests.request(&#8220;GET&#8221;, url, headers=headers, data=payload)<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->txs=json.loads(response.text)<!-- [et_pb_line_break_holder] -->buyers={}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->priceInLovelace=15000000 #example 15 ADA becomes 15000000<!-- [et_pb_line_break_holder] -->for tx in txs:<!-- [et_pb_line_break_holder] -->    if len(tx[&#8216;amount&#8217;])>1 or int(tx[&#8216;amount&#8217;][0][&#8216;quantity&#8217;])<priceInLovelace:<!-- [et_pb_line_break_holder] -->        continue<!-- [et_pb_line_break_holder] -->    buyer={}<!-- [et_pb_line_break_holder] -->    buyer[&#8216;tx&#8217;]=tx[&#8216;tx_hash&#8217;]+&#8217;#&#8217;+str(tx[&#8216;tx_index&#8217;])<!-- [et_pb_line_break_holder] -->    buyer[&#8216;amount&#8217;]=int(tx[&#8216;amount&#8217;][0][&#8216;quantity&#8217;])<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    url=&#8217;https:\/\/cardano-mainnet.blockfrost.io\/api\/v0\/txs\/&#8217;+tx[&#8216;tx_hash&#8217;]+&#8221;\/utxos&#8221;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    response = requests.request(&#8220;GET&#8221;, url, headers=headers, data=payload)<!-- [et_pb_line_break_holder] -->    info=json.loads(response.text)<!-- [et_pb_line_break_holder] -->    buyer[&#8216;address&#8217;]=info[&#8216;inputs&#8217;][0][&#8216;address&#8217;]<!-- [et_pb_line_break_holder] -->    buyers[buyer[&#8216;tx&#8217;]]=buyer<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->#print(buyers)<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->for buyer in buyers:<!-- [et_pb_line_break_holder] -->    sender=buyers[buyer][&#8216;address&#8217;]<!-- [et_pb_line_break_holder] -->    tx=buyers[buyer][&#8216;tx&#8217;]<!-- [et_pb_line_break_holder] -->    paid=buyers[buyer][&#8216;amount&#8217;]<!-- [et_pb_line_break_holder] -->    cmd=&#8217;cardano-cli transaction build-raw &#8211;fee 0 &#8211;tx-in &#8216;+tx+&#8217; &#8211;tx-out &#8216;+sender+&#8217;+0 &#8211;out-file matx.raw&#8217;<!-- [et_pb_line_break_holder] -->    out=subprocess.getoutput(cmd)<!-- [et_pb_line_break_holder] -->    print(out)<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    cmd = &#8216;cardano-cli query protocol-parameters &#8211;mainnet &#8211;out-file protocol.json&#8217;<!-- [et_pb_line_break_holder] -->    out = subprocess.getoutput(cmd)<!-- [et_pb_line_break_holder] -->    cmd=&#8217;cardano-cli transaction calculate-min-fee &#8211;tx-body-file matx.raw  &#8211;tx-in-count 1 &#8211;tx-out-count 1 &#8211;witness-count 1 &#8211;mainnet protocol-params-file protocol.json&#8217;<!-- [et_pb_line_break_holder] -->    out=subprocess.getoutput(cmd)<!-- [et_pb_line_break_holder] -->    print(out)<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    fee=int(out.split()[0])<!-- [et_pb_line_break_holder] -->    change=paid-fee<!-- [et_pb_line_break_holder] -->    print(change)<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    cmd=&#8217;cardano-cli transaction build-raw &#8211;fee &#8216;+str(fee)+&#8217; &#8211;tx-in &#8216;+tx+&#8217; &#8211;tx-out &#8216;+sender+&#8217;+&#8217;+str(change)+&#8217; &#8211;out-file matx.raw&#8217;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    out=subprocess.getoutput(cmd)<!-- [et_pb_line_break_holder] -->    print(cmd)<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    cmd=&#8217;cardano-cli transaction sign &#8211;signing-key-file  receiverAddress\/payment.skey   &#8211;mainnet &#8211;tx-body-file matx.raw &#8211;out-file matx.signed&#8217;<!-- [et_pb_line_break_holder] -->    out=subprocess.getoutput(cmd)<!-- [et_pb_line_break_holder] -->    cmd=&#8217;cardano-cli transaction submit &#8211;tx-file matx.signed &#8211;mainnet&#8217;<!-- [et_pb_line_break_holder] -->    out=subprocess.getoutput(cmd)<!-- [et_pb_line_break_holder] -->    print(out)<!-- [et_pb_line_break_holder] --><\/textarea>[\/et_pb_code][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.9.1&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;gcid-52d8a241-99cd-47a8-828f-fd2d663beb2e&#8221; background_enable_color=&#8221;off&#8221; background_image=&#8221;https:\/\/cnftacademy.com\/wp-content\/uploads\/2021\/11\/sfondo-raul-rosa.jpg&#8221; width_tablet=&#8221;100%&#8221; width_phone=&#8221;100%&#8221; width_last_edited=&#8221;on|phone&#8221; custom_margin_tablet=&#8221;-30px||||false|false&#8221; custom_margin_phone=&#8221;&#8221; custom_margin_last_edited=&#8221;on|phone&#8221; custom_padding=&#8221;40px||40px||true|&#8221; border_radii=&#8221;on|10px|10px|10px|10px&#8221; global_colors_info=&#8221;{%22gcid-52d8a241-99cd-47a8-828f-fd2d663beb2e%22:%91%22background_color%22%93}&#8221; locked=&#8221;off&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.9.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.13.1&#8243; _module_preset=&#8221;default&#8221; header_text_align=&#8221;center&#8221; header_2_text_align=&#8221;center&#8221; header_2_font_size=&#8221;40px&#8221; header_4_text_align=&#8221;center&#8221; background_layout=&#8221;dark&#8221; custom_margin=&#8221;||10px|||&#8221; header_2_font_size_tablet=&#8221;32px&#8221; header_2_font_size_phone=&#8221;28px&#8221; header_2_font_size_last_edited=&#8221;on|phone&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h4 dir=\"ltr\">Supporta il progetto<\/h4>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221; _builder_version=&#8221;4.13.1&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; text_orientation=&#8221;center&#8221; background_layout=&#8221;dark&#8221; custom_margin=&#8221;||0px||false|false&#8221; custom_padding=&#8221;|20px||20px|false|true&#8221; custom_padding_tablet=&#8221;&#8221; custom_padding_phone=&#8221;&#8221; custom_padding_last_edited=&#8221;on|phone&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Puoi supportare i nostri video e il loro sviluppo, scoprendo uno dei nostri progetti NFT:<\/p>\n<p dir=\"ltr\"><a href=\"https:\/\/twitter.com\/fabul_art\" target=\"_blank\" rel=\"noopener\"><strong>@Fabul_art<\/strong><\/a><span>\u00a0NFT interattive in 3D<\/span><br \/><strong><a href=\"https:\/\/twitter.com\/cardano_waifus\" target=\"_blank\" rel=\"noopener\">@cardano_waifus<\/a><\/strong><span>\u00a0Le prime Waifu mintate nel mondo Cardano con utilities e integrazioni Nami Wallet<\/span><br \/><a href=\"https:\/\/twitter.com\/jurassikchained\" target=\"_blank\" rel=\"noopener\"><strong>@jurassikchained<\/strong><\/a><span>\u00a0Dinosauri NFT completamente on-chain, esemplari unici e specie diverse<\/span><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ecco il codice spiegato nel video: import jsonimport requestsimport subprocessaddress=&#8221;ADDRESSVENDING&#8221;url = &#8220;https:\/\/cardano-mainnet.blockfrost.io\/api\/v0\/addresses\/&#8221;+address+&#8221;\/utxos&#8221;payload={}headers = { &#8216;project_id&#8217;: &#8216;SECRET&#8217;}max=0response = requests.request(&#8220;GET&#8221;, url, headers=headers, data=payload)txs=json.loads(response.text)buyers={}priceInLovelace=15000000 #example 15 ADA becomes 15000000for tx in txs: if len(tx[&#8216;amount&#8217;])>1 or int(tx[&#8216;amount&#8217;][0][&#8216;quantity&#8217;]) buyer={} buyer[&#8216;tx&#8217;]=tx[&#8216;tx_hash&#8217;]+&#8217;#&#8217;+str(tx[&#8216;tx_index&#8217;]) buyer[&#8216;amount&#8217;]=int(tx[&#8216;amount&#8217;][0][&#8216;quantity&#8217;]) url=&#8217;https:\/\/cardano-mainnet.blockfrost.io\/api\/v0\/txs\/&#8217;+tx[&#8216;tx_hash&#8217;]+&#8221;\/utxos&#8221; response = requests.request(&#8220;GET&#8221;, url, headers=headers, data=payload) info=json.loads(response.text) buyer[&#8216;address&#8217;]=info[&#8216;inputs&#8217;][0][&#8216;address&#8217;] buyers[buyer[&#8216;tx&#8217;]]=buyer#print(buyers)for buyer in buyers: sender=buyers[buyer][&#8216;address&#8217;] tx=buyers[buyer][&#8216;tx&#8217;] paid=buyers[buyer][&#8216;amount&#8217;] cmd=&#8217;cardano-cli transaction build-raw [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":436,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"<p>[et_pb_section fb_built=\"1\" admin_label=\"section\" _builder_version=\"4.9.1\" custom_padding=\"40px||80px|||\" border_width_top=\"3px\" border_color_top=\"gcid-52d8a241-99cd-47a8-828f-fd2d663beb2e\" border_width_bottom=\"3px\" border_color_bottom=\"gcid-52d8a241-99cd-47a8-828f-fd2d663beb2e\" global_colors_info=\"{%22gcid-52d8a241-99cd-47a8-828f-fd2d663beb2e%22:%91%22border_color_top%22,%22border_color_bottom%22%93}\"][et_pb_row admin_label=\"row\" _builder_version=\"3.25\" background_size=\"initial\" background_position=\"top_left\" background_repeat=\"repeat\" custom_padding=\"0px|||||\" global_colors_info=\"{}\"][et_pb_column type=\"4_4\" _builder_version=\"3.25\" custom_padding=\"|||\" global_colors_info=\"{}\" custom_padding__hover=\"|||\"][et_pb_code module_class=\"video-iframe\" _builder_version=\"4.13.1\" _module_preset=\"default\" global_colors_info=\"{}\"]<iframe class=\"embed-responsive-item\" title=\"Lesson 5\" src=\"https:\/\/cnftacademy.s3.eu-west-2.amazonaws.com\/lezione6.mp4\" width=\"100%\" height=\"610px\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe>[\/et_pb_code][\/et_pb_column][\/et_pb_row][et_pb_row use_custom_gutter=\"on\" gutter_width=\"2\" _builder_version=\"4.13.1\" _module_preset=\"default\" global_colors_info=\"{}\"][et_pb_column type=\"4_4\" _builder_version=\"4.13.1\" _module_preset=\"default\" global_colors_info=\"{}\"][et_pb_text admin_label=\"Text\" _builder_version=\"4.13.1\" background_size=\"initial\" background_position=\"top_left\" background_repeat=\"repeat\" custom_margin=\"||15px||false|false\" global_colors_info=\"{}\"]<\/p><p dir=\"ltr\">This is the code explained in the video.<\/p><p>[\/et_pb_text][et_pb_code _builder_version=\"4.13.1\" _module_preset=\"default\" custom_margin=\"||50px||false|false\" global_colors_info=\"{}\"]<textarea cols=\"100\" readonly=\"readonly\" rows=\"30\"> <!-- [et_pb_line_break_holder] -->import json<!-- [et_pb_line_break_holder] -->import requests<!-- [et_pb_line_break_holder] -->import subprocess<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->address=\"ADDRESSVENDING\"<!-- [et_pb_line_break_holder] -->url = \"https:\/\/cardano-mainnet.blockfrost.io\/api\/v0\/addresses\/\"+address+\"\/utxos\"<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->payload={}<!-- [et_pb_line_break_holder] -->headers = {<!-- [et_pb_line_break_holder] -->  'project_id': 'SECRET'<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->max=0<!-- [et_pb_line_break_holder] -->response = requests.request(\"GET\", url, headers=headers, data=payload)<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->txs=json.loads(response.text)<!-- [et_pb_line_break_holder] -->buyers={}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->priceInLovelace=15000000 #example 15 ADA becomes 15000000<!-- [et_pb_line_break_holder] -->for tx in txs:<!-- [et_pb_line_break_holder] -->    if len(tx['amount'])>1 or int(tx['amount'][0]['quantity'])<priceInLovelace:<!-- [et_pb_line_break_holder] -->        continue<!-- [et_pb_line_break_holder] -->    buyer={}<!-- [et_pb_line_break_holder] -->    buyer['tx']=tx['tx_hash']+'#'+str(tx['tx_index'])<!-- [et_pb_line_break_holder] -->    buyer['amount']=int(tx['amount'][0]['quantity'])<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    url='https:\/\/cardano-mainnet.blockfrost.io\/api\/v0\/txs\/'+tx['tx_hash']+\"\/utxos\"<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    response = requests.request(\"GET\", url, headers=headers, data=payload)<!-- [et_pb_line_break_holder] -->    info=json.loads(response.text)<!-- [et_pb_line_break_holder] -->    buyer['address']=info['inputs'][0]['address']<!-- [et_pb_line_break_holder] -->    buyers[buyer['tx']]=buyer<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->#print(buyers)<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->for buyer in buyers:<!-- [et_pb_line_break_holder] -->    sender=buyers[buyer]['address']<!-- [et_pb_line_break_holder] -->    tx=buyers[buyer]['tx']<!-- [et_pb_line_break_holder] -->    paid=buyers[buyer]['amount']<!-- [et_pb_line_break_holder] -->    cmd='cardano-cli transaction build-raw --fee 0 --tx-in '+tx+' --tx-out '+sender+'+0 --out-file matx.raw'<!-- [et_pb_line_break_holder] -->    out=subprocess.getoutput(cmd)<!-- [et_pb_line_break_holder] -->    print(out)<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    cmd = 'cardano-cli query protocol-parameters --mainnet --out-file protocol.json'<!-- [et_pb_line_break_holder] -->    out = subprocess.getoutput(cmd)<!-- [et_pb_line_break_holder] -->    cmd='cardano-cli transaction calculate-min-fee --tx-body-file matx.raw  --tx-in-count 1 --tx-out-count 1 --witness-count 1 --mainnet protocol-params-file protocol.json'<!-- [et_pb_line_break_holder] -->    out=subprocess.getoutput(cmd)<!-- [et_pb_line_break_holder] -->    print(out)<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    fee=int(out.split()[0])<!-- [et_pb_line_break_holder] -->    change=paid-fee<!-- [et_pb_line_break_holder] -->    print(change)<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    cmd='cardano-cli transaction build-raw --fee '+str(fee)+' --tx-in '+tx+' --tx-out '+sender+'+'+str(change)+' --out-file matx.raw'<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    out=subprocess.getoutput(cmd)<!-- [et_pb_line_break_holder] -->    print(cmd)<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    cmd='cardano-cli transaction sign --signing-key-file  receiverAddress\/payment.skey   --mainnet --tx-body-file matx.raw --out-file matx.signed'<!-- [et_pb_line_break_holder] -->    out=subprocess.getoutput(cmd)<!-- [et_pb_line_break_holder] -->    cmd='cardano-cli transaction submit --tx-file matx.signed --mainnet'<!-- [et_pb_line_break_holder] -->    out=subprocess.getoutput(cmd)<!-- [et_pb_line_break_holder] -->    print(out)<!-- [et_pb_line_break_holder] --><\/textarea>[\/et_pb_code][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=\"4.9.1\" _module_preset=\"default\" background_color=\"gcid-52d8a241-99cd-47a8-828f-fd2d663beb2e\" background_enable_color=\"off\" background_image=\"https:\/\/cnftacademy.com\/wp-content\/uploads\/2021\/11\/sfondo-raul-rosa.jpg\" width_tablet=\"100%\" width_phone=\"100%\" width_last_edited=\"on|phone\" custom_margin_tablet=\"-30px||||false|false\" custom_margin_phone=\"\" custom_margin_last_edited=\"on|phone\" custom_padding=\"40px||40px||true|\" border_radii=\"on|10px|10px|10px|10px\" global_colors_info=\"{%22gcid-52d8a241-99cd-47a8-828f-fd2d663beb2e%22:%91%22background_color%22%93}\"][et_pb_column type=\"4_4\" _builder_version=\"4.9.1\" _module_preset=\"default\" global_colors_info=\"{}\"][et_pb_text _builder_version=\"4.9.1\" _module_preset=\"default\" header_text_align=\"center\" header_2_text_align=\"center\" header_2_font_size=\"40px\" header_4_text_align=\"center\" background_layout=\"dark\" custom_margin=\"||10px|||\" header_2_font_size_tablet=\"32px\" header_2_font_size_phone=\"28px\" header_2_font_size_last_edited=\"on|phone\" locked=\"off\" global_colors_info=\"{}\"]<\/p><h4 dir=\"ltr\">Support the project<\/h4><p>[\/et_pb_text][et_pb_text admin_label=\"Text\" _builder_version=\"4.9.1\" background_size=\"initial\" background_position=\"top_left\" background_repeat=\"repeat\" text_orientation=\"center\" background_layout=\"dark\" custom_margin=\"||0px||false|false\" custom_padding=\"|20px||20px|false|true\" custom_padding_tablet=\"\" custom_padding_phone=\"\" custom_padding_last_edited=\"on|phone\" global_colors_info=\"{}\"]<\/p><p dir=\"ltr\">You can support our videos and development you can check one of our NFT project:<\/p><p dir=\"ltr\"><strong><a href=\"https:\/\/twitter.com\/jurassikchained\" target=\"_blank\" rel=\"noopener\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=https:\/\/twitter.com\/jurassikchained&source=gmail&ust=1637318789391000&usg=AOvVaw2EqjxZ2RjaqZtU_tA7nls0\">@jurassikchained<\/a><\/strong> 10k onchain dinos<br \/><a href=\"https:\/\/twitter.com\/cardano_waifus\" target=\"_blank\" rel=\"noopener\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=https:\/\/twitter.com\/cardano_waifus&source=gmail&ust=1637318789391000&usg=AOvVaw3ismVAnTJfHW5WmPt-jBA7\"><strong>@cardano_waifus<\/strong><\/a> 1\/1 waifus that can change background<br \/><strong><a href=\"https:\/\/twitter.com\/fabul_art\" target=\"_blank\" rel=\"noopener\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=https:\/\/twitter.com\/fabul_art&source=gmail&ust=1637318789391000&usg=AOvVaw0hF3QhV-5AH_P-d-x58eMX\">@fabul_art<\/a><\/strong> \u00a0 Interactive 3D art Faberg\u00e8 eggs<\/p><p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>","_et_gb_content_width":""},"categories":[10],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Vending Machine: quello che c&#039;\u00e8 da sapere | CNFT Academy<\/title>\n<meta name=\"description\" content=\"Se vuoi approfondire il tema della vending machine, nessun problema: CNFT Academy ti fornisce qui la risposta. Contattami!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Vending Machine: quello che c&#039;\u00e8 da sapere | CNFT Academy\" \/>\n<meta property=\"og:description\" content=\"Se vuoi approfondire il tema della vending machine, nessun problema: CNFT Academy ti fornisce qui la risposta. Contattami!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/\" \/>\n<meta property=\"og:site_name\" content=\"Cnftacademy\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-09T13:48:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-21T09:55:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cnftacademy.com\/wp-content\/uploads\/2022\/01\/newspapers-g7a9fbcbec_1920.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1019\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cnftacademy\" \/>\n<meta name=\"twitter:site\" content=\"@cnftacademy\" \/>\n<meta name=\"twitter:label1\" content=\"Scritto da\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin5748\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo di lettura stimato\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/cnftacademy.com\/#organization\",\"name\":\"Cnft Academy\",\"url\":\"https:\/\/cnftacademy.com\/\",\"sameAs\":[\"https:\/\/twitter.com\/cnftacademy\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/cnftacademy.com\/#logo\",\"inLanguage\":\"it-IT\",\"url\":\"https:\/\/cnftacademy.com\/wp-content\/uploads\/2021\/10\/logo-cnftacademy.png\",\"contentUrl\":\"https:\/\/cnftacademy.com\/wp-content\/uploads\/2021\/10\/logo-cnftacademy.png\",\"width\":780,\"height\":140,\"caption\":\"Cnft Academy\"},\"image\":{\"@id\":\"https:\/\/cnftacademy.com\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cnftacademy.com\/#website\",\"url\":\"https:\/\/cnftacademy.com\/\",\"name\":\"Cnftacademy\",\"description\":\"find out how to create nft\",\"publisher\":{\"@id\":\"https:\/\/cnftacademy.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cnftacademy.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"it-IT\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#primaryimage\",\"inLanguage\":\"it-IT\",\"url\":\"https:\/\/cnftacademy.com\/wp-content\/uploads\/2022\/01\/newspapers-g7a9fbcbec_1920.jpg\",\"contentUrl\":\"https:\/\/cnftacademy.com\/wp-content\/uploads\/2022\/01\/newspapers-g7a9fbcbec_1920.jpg\",\"width\":1920,\"height\":1019},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#webpage\",\"url\":\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/\",\"name\":\"Vending Machine: quello che c'\\u00e8 da sapere | CNFT Academy\",\"isPartOf\":{\"@id\":\"https:\/\/cnftacademy.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#primaryimage\"},\"datePublished\":\"2022-01-09T13:48:18+00:00\",\"dateModified\":\"2022-03-21T09:55:57+00:00\",\"description\":\"Se vuoi approfondire il tema della vending machine, nessun problema: CNFT Academy ti fornisce qui la risposta. Contattami!\",\"breadcrumb\":{\"@id\":\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cnftacademy.com\/it\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lezione 6: Cardano Vending machines parte 1\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#webpage\"},\"author\":{\"@id\":\"https:\/\/cnftacademy.com\/#\/schema\/person\/1acc5cc6ada4490c3612293fcc5a2b3a\"},\"headline\":\"Lezione 6: Cardano Vending machines parte 1\",\"datePublished\":\"2022-01-09T13:48:18+00:00\",\"dateModified\":\"2022-03-21T09:55:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#webpage\"},\"wordCount\":742,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cnftacademy.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cnftacademy.com\/wp-content\/uploads\/2022\/01\/newspapers-g7a9fbcbec_1920.jpg\",\"articleSection\":[\"Lezioni gratuite\"],\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/cnftacademy.com\/#\/schema\/person\/1acc5cc6ada4490c3612293fcc5a2b3a\",\"name\":\"admin5748\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/cnftacademy.com\/#personlogo\",\"inLanguage\":\"it-IT\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ce33342a7c06716a6c86382bbda95291?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ce33342a7c06716a6c86382bbda95291?s=96&d=mm&r=g\",\"caption\":\"admin5748\"},\"sameAs\":[\"http:\/\/cnftacademy.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Vending Machine: quello che c'\u00e8 da sapere | CNFT Academy","description":"Se vuoi approfondire il tema della vending machine, nessun problema: CNFT Academy ti fornisce qui la risposta. Contattami!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/","og_locale":"it_IT","og_type":"article","og_title":"Vending Machine: quello che c'\u00e8 da sapere | CNFT Academy","og_description":"Se vuoi approfondire il tema della vending machine, nessun problema: CNFT Academy ti fornisce qui la risposta. Contattami!","og_url":"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/","og_site_name":"Cnftacademy","article_published_time":"2022-01-09T13:48:18+00:00","article_modified_time":"2022-03-21T09:55:57+00:00","og_image":[{"width":1920,"height":1019,"url":"https:\/\/cnftacademy.com\/wp-content\/uploads\/2022\/01\/newspapers-g7a9fbcbec_1920.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_creator":"@cnftacademy","twitter_site":"@cnftacademy","twitter_misc":{"Scritto da":"admin5748","Tempo di lettura stimato":"2 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/cnftacademy.com\/#organization","name":"Cnft Academy","url":"https:\/\/cnftacademy.com\/","sameAs":["https:\/\/twitter.com\/cnftacademy"],"logo":{"@type":"ImageObject","@id":"https:\/\/cnftacademy.com\/#logo","inLanguage":"it-IT","url":"https:\/\/cnftacademy.com\/wp-content\/uploads\/2021\/10\/logo-cnftacademy.png","contentUrl":"https:\/\/cnftacademy.com\/wp-content\/uploads\/2021\/10\/logo-cnftacademy.png","width":780,"height":140,"caption":"Cnft Academy"},"image":{"@id":"https:\/\/cnftacademy.com\/#logo"}},{"@type":"WebSite","@id":"https:\/\/cnftacademy.com\/#website","url":"https:\/\/cnftacademy.com\/","name":"Cnftacademy","description":"find out how to create nft","publisher":{"@id":"https:\/\/cnftacademy.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cnftacademy.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"it-IT"},{"@type":"ImageObject","@id":"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#primaryimage","inLanguage":"it-IT","url":"https:\/\/cnftacademy.com\/wp-content\/uploads\/2022\/01\/newspapers-g7a9fbcbec_1920.jpg","contentUrl":"https:\/\/cnftacademy.com\/wp-content\/uploads\/2022\/01\/newspapers-g7a9fbcbec_1920.jpg","width":1920,"height":1019},{"@type":"WebPage","@id":"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#webpage","url":"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/","name":"Vending Machine: quello che c'\u00e8 da sapere | CNFT Academy","isPartOf":{"@id":"https:\/\/cnftacademy.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#primaryimage"},"datePublished":"2022-01-09T13:48:18+00:00","dateModified":"2022-03-21T09:55:57+00:00","description":"Se vuoi approfondire il tema della vending machine, nessun problema: CNFT Academy ti fornisce qui la risposta. Contattami!","breadcrumb":{"@id":"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cnftacademy.com\/it\/"},{"@type":"ListItem","position":2,"name":"Lezione 6: Cardano Vending machines parte 1"}]},{"@type":"Article","@id":"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#article","isPartOf":{"@id":"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#webpage"},"author":{"@id":"https:\/\/cnftacademy.com\/#\/schema\/person\/1acc5cc6ada4490c3612293fcc5a2b3a"},"headline":"Lezione 6: Cardano Vending machines parte 1","datePublished":"2022-01-09T13:48:18+00:00","dateModified":"2022-03-21T09:55:57+00:00","mainEntityOfPage":{"@id":"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#webpage"},"wordCount":742,"commentCount":0,"publisher":{"@id":"https:\/\/cnftacademy.com\/#organization"},"image":{"@id":"https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#primaryimage"},"thumbnailUrl":"https:\/\/cnftacademy.com\/wp-content\/uploads\/2022\/01\/newspapers-g7a9fbcbec_1920.jpg","articleSection":["Lezioni gratuite"],"inLanguage":"it-IT","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cnftacademy.com\/it\/lezione-6-cardano-vending-machines-parte-1\/#respond"]}]},{"@type":"Person","@id":"https:\/\/cnftacademy.com\/#\/schema\/person\/1acc5cc6ada4490c3612293fcc5a2b3a","name":"admin5748","image":{"@type":"ImageObject","@id":"https:\/\/cnftacademy.com\/#personlogo","inLanguage":"it-IT","url":"https:\/\/secure.gravatar.com\/avatar\/ce33342a7c06716a6c86382bbda95291?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ce33342a7c06716a6c86382bbda95291?s=96&d=mm&r=g","caption":"admin5748"},"sameAs":["http:\/\/cnftacademy.com"]}]}},"_links":{"self":[{"href":"https:\/\/cnftacademy.com\/it\/wp-json\/wp\/v2\/posts\/499"}],"collection":[{"href":"https:\/\/cnftacademy.com\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cnftacademy.com\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cnftacademy.com\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cnftacademy.com\/it\/wp-json\/wp\/v2\/comments?post=499"}],"version-history":[{"count":6,"href":"https:\/\/cnftacademy.com\/it\/wp-json\/wp\/v2\/posts\/499\/revisions"}],"predecessor-version":[{"id":506,"href":"https:\/\/cnftacademy.com\/it\/wp-json\/wp\/v2\/posts\/499\/revisions\/506"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cnftacademy.com\/it\/wp-json\/wp\/v2\/media\/436"}],"wp:attachment":[{"href":"https:\/\/cnftacademy.com\/it\/wp-json\/wp\/v2\/media?parent=499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cnftacademy.com\/it\/wp-json\/wp\/v2\/categories?post=499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cnftacademy.com\/it\/wp-json\/wp\/v2\/tags?post=499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}