{"id":2741,"date":"2020-06-17T17:57:23","date_gmt":"2020-06-17T05:57:23","guid":{"rendered":"http:\/\/www.talkcrypto.org\/blog\/?p=2741"},"modified":"2020-06-30T17:27:32","modified_gmt":"2020-06-30T05:27:32","slug":"which-is-cheaper-a-public-function-or-an-external-function","status":"publish","type":"post","link":"https:\/\/www.talkcrypto.org\/blog\/2020\/06\/17\/which-is-cheaper-a-public-function-or-an-external-function\/","title":{"rendered":"Which is cheaper, a public function or an external function?"},"content":{"rendered":"\n<p>Here is a quick video explaining which function is cheaper, a public function or an external function in Solidity. I&#8217;ve also included a demonstration to prove it as well. <\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Public functions verses external functions in Solidity\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/5EV_nbCh7Ow?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Here is a quick video explaining which function is cheaper,<\/p>\n","protected":false},"author":1,"featured_media":2759,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2],"tags":[],"class_list":["post-2741","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ethereum","category-smart-contracts"],"featured_image_urls":{"full":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2020\/06\/public-v-external.jpg",194,100,false],"thumbnail":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2020\/06\/public-v-external-150x100.jpg",150,100,true],"medium":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2020\/06\/public-v-external.jpg",194,100,false],"medium_large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2020\/06\/public-v-external.jpg",194,100,false],"large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2020\/06\/public-v-external.jpg",194,100,false],"1536x1536":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2020\/06\/public-v-external.jpg",194,100,false],"2048x2048":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2020\/06\/public-v-external.jpg",194,100,false],"chromenews-featured":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2020\/06\/public-v-external.jpg",194,100,false],"chromenews-large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2020\/06\/public-v-external.jpg",194,100,false],"chromenews-medium":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2020\/06\/public-v-external.jpg",194,100,false]},"author_info":{"info":["seandotau"]},"category_info":"<a href=\"https:\/\/www.talkcrypto.org\/blog\/category\/ethereum\/\" rel=\"category tag\">Ethereum<\/a> <a href=\"https:\/\/www.talkcrypto.org\/blog\/category\/smart-contracts\/\" rel=\"category tag\">Smart Contracts<\/a>","tag_info":"Smart Contracts","comment_count":"0","_links":{"self":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/2741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/comments?post=2741"}],"version-history":[{"count":1,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/2741\/revisions"}],"predecessor-version":[{"id":2742,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/2741\/revisions\/2742"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/media\/2759"}],"wp:attachment":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/media?parent=2741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/categories?post=2741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/tags?post=2741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}