{"id":119,"date":"2021-02-26T14:30:25","date_gmt":"2021-02-26T14:30:25","guid":{"rendered":"https:\/\/streetmindfood.com\/plutohash\/?p=119"},"modified":"2021-05-14T09:58:03","modified_gmt":"2021-05-14T09:58:03","slug":"explore-transaction-fees-in-a-specific-block","status":"publish","type":"post","link":"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/","title":{"rendered":"Explore Transaction Fees in a specific Block"},"content":{"rendered":"\n

In this simple tutorial we will see how you can observe the fees paid in a specific block by knowing the location of the block in the blockchain.<\/p>\n\n\n\n

We start by importing the blocksci <\/code>library and instantiating the blockchain.<\/p>\n\n\n\n

import blocksci\nchain = blocksci.Blockchain(\"\/BlockSci\/config_file\")<\/code><\/pre>\n\n\n\n

We import the pandas library to store the data in a pandas.DataFrame<\/code>, and the seaborn <\/code>library to display the data.<\/p>\n\n\n\n

import pandas as pd\nimport seaborn<\/code><\/pre>\n\n\n\n

Now we select a specific block, in our case block 465100, and store the data regarding the fees of each transaction in a DataFrame.<\/p>\n\n\n\n

example_block_height = 465100\ndf = pd.DataFrame(chain[example_block_height].txes.fee_per_byte(), columns=['Satoshi per byte'])<\/code><\/pre>\n\n\n\n

This should be the result:<\/p>\n\n\n\n

df<\/code><\/pre>\n\n\n\n
\"\"<\/figure>\n\n\n\n

Well, we can now set up the graph and display it.<\/p>\n\n\n\n

ax = df.reset_index().plot.scatter(x=\"index\", y=\"Satoshi per byte\")\nax.set_ylim(0)\nax.set_xlim(0)<\/code><\/pre>\n\n\n\n
\"\"<\/figure>\n\n\n\n

Would you like to analyze the bitcoin blockchain using Python?<\/p>\n\n\n\n

Apply to our Beta Tester Program<\/strong>!<\/a><\/p>\n\n\n\n

You can also join our <\/a>developer channel<\/a>!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"

In this simple tutorial we will see how you can observe the fees paid in a specific block by knowing the location of the block in the blockchain. We start by importing the blocksci library and instantiating the blockchain. We import the pandas library to store the data in a pandas.DataFrame, and the seaborn library …<\/p>\n

Explore Transaction Fees in a specific Block<\/span> Read More »<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[5],"tags":[11,9,10,12,14,13],"yoast_head":"\nExplore Transaction Fees in a specific Block - PlutoHash<\/title>\n<meta name=\"description\" content=\"Plutohash is a startup focused on blockchain analytics. We offer practical solutions to perform analytics on blockchain data parsed and ready to be analyzed with friendly tools for data scientists, as Jupyter Notebook and Python language.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Explore Transaction Fees in a specific Block - PlutoHash\" \/>\n<meta property=\"og:description\" content=\"Plutohash is a startup focused on blockchain analytics. We offer practical solutions to perform analytics on blockchain data parsed and ready to be analyzed with friendly tools for data scientists, as Jupyter Notebook and Python language.\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/\" \/>\n<meta property=\"og:site_name\" content=\"PlutoHash\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PlutoHashcom\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-26T14:30:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-14T09:58:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/streetmindfood.com\/plutohash\/wp-content\/uploads\/2021\/03\/screen_tutorial_blocksci.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@plutohashcom\" \/>\n<meta name=\"twitter:site\" content=\"@plutohashcom\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Francesco Zedde\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.plutohash.com\/#organization\",\"name\":\"Plutohash\",\"url\":\"https:\/\/www.plutohash.com\/\",\"sameAs\":[\"https:\/\/www.facebook.com\/PlutoHashcom\/\",\"https:\/\/www.instagram.com\/plutohashcom\/\",\"https:\/\/www.linkedin.com\/company\/plutohash\/?viewAsMember=true\",\"https:\/\/www.youtube.com\/channel\/UC2P2z4wHTCeH1PbPXU70F0w\",\"https:\/\/twitter.com\/plutohashcom\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.plutohash.com\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/i0.wp.com\/www.plutohash.com\/wp-content\/uploads\/2021\/05\/Logo-plutohash.jpg?fit=657%2C746&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.plutohash.com\/wp-content\/uploads\/2021\/05\/Logo-plutohash.jpg?fit=657%2C746&ssl=1\",\"width\":657,\"height\":746,\"caption\":\"Plutohash\"},\"image\":{\"@id\":\"https:\/\/www.plutohash.com\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.plutohash.com\/#website\",\"url\":\"https:\/\/www.plutohash.com\/\",\"name\":\"PlutoHash\",\"description\":\"Empowering Talents Worldwide\",\"publisher\":{\"@id\":\"https:\/\/www.plutohash.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.plutohash.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/streetmindfood.com\/plutohash\/wp-content\/uploads\/2021\/03\/screen_tutorial_blocksci.jpg\",\"contentUrl\":\"https:\/\/streetmindfood.com\/plutohash\/wp-content\/uploads\/2021\/03\/screen_tutorial_blocksci.jpg\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#webpage\",\"url\":\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/\",\"name\":\"Explore Transaction Fees in a specific Block - PlutoHash\",\"isPartOf\":{\"@id\":\"https:\/\/www.plutohash.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#primaryimage\"},\"datePublished\":\"2021-02-26T14:30:25+00:00\",\"dateModified\":\"2021-05-14T09:58:03+00:00\",\"description\":\"Plutohash is a startup focused on blockchain analytics. We offer practical solutions to perform analytics on blockchain data parsed and ready to be analyzed with friendly tools for data scientists, as Jupyter Notebook and Python language.\",\"breadcrumb\":{\"@id\":\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.plutohash.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Explore Transaction Fees in a specific Block\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.plutohash.com\/#\/schema\/person\/f4b24da149e25ea2c3411b565664a45d\"},\"headline\":\"Explore Transaction Fees in a specific Block\",\"datePublished\":\"2021-02-26T14:30:25+00:00\",\"dateModified\":\"2021-05-14T09:58:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#webpage\"},\"wordCount\":125,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.plutohash.com\/#organization\"},\"image\":{\"@id\":\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/streetmindfood.com\/plutohash\/wp-content\/uploads\/2021\/03\/screen_tutorial_blocksci.jpg\",\"keywords\":[\"analysis\",\"bitcoin\",\"blockchain\",\"datascience\",\"programming\",\"python\"],\"articleSection\":[\"PlutoHash Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.plutohash.com\/#\/schema\/person\/f4b24da149e25ea2c3411b565664a45d\",\"name\":\"Francesco Zedde\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.plutohash.com\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/0.gravatar.com\/avatar\/011c5e59cb8321e86b6a18e6d52601b2?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/0.gravatar.com\/avatar\/011c5e59cb8321e86b6a18e6d52601b2?s=96&d=mm&r=g\",\"caption\":\"Francesco Zedde\"},\"url\":\"http:\/\/www.plutohash.com\/author\/francescozedde\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Explore Transaction Fees in a specific Block - PlutoHash","description":"Plutohash is a startup focused on blockchain analytics. We offer practical solutions to perform analytics on blockchain data parsed and ready to be analyzed with friendly tools for data scientists, as Jupyter Notebook and Python language.","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":"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/","og_locale":"en_US","og_type":"article","og_title":"Explore Transaction Fees in a specific Block - PlutoHash","og_description":"Plutohash is a startup focused on blockchain analytics. We offer practical solutions to perform analytics on blockchain data parsed and ready to be analyzed with friendly tools for data scientists, as Jupyter Notebook and Python language.","og_url":"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/","og_site_name":"PlutoHash","article_publisher":"https:\/\/www.facebook.com\/PlutoHashcom\/","article_published_time":"2021-02-26T14:30:25+00:00","article_modified_time":"2021-05-14T09:58:03+00:00","og_image":[{"url":"https:\/\/streetmindfood.com\/plutohash\/wp-content\/uploads\/2021\/03\/screen_tutorial_blocksci.jpg"}],"twitter_card":"summary_large_image","twitter_creator":"@plutohashcom","twitter_site":"@plutohashcom","twitter_misc":{"Written by":"Francesco Zedde","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.plutohash.com\/#organization","name":"Plutohash","url":"https:\/\/www.plutohash.com\/","sameAs":["https:\/\/www.facebook.com\/PlutoHashcom\/","https:\/\/www.instagram.com\/plutohashcom\/","https:\/\/www.linkedin.com\/company\/plutohash\/?viewAsMember=true","https:\/\/www.youtube.com\/channel\/UC2P2z4wHTCeH1PbPXU70F0w","https:\/\/twitter.com\/plutohashcom"],"logo":{"@type":"ImageObject","@id":"https:\/\/www.plutohash.com\/#logo","inLanguage":"en-US","url":"https:\/\/i0.wp.com\/www.plutohash.com\/wp-content\/uploads\/2021\/05\/Logo-plutohash.jpg?fit=657%2C746&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.plutohash.com\/wp-content\/uploads\/2021\/05\/Logo-plutohash.jpg?fit=657%2C746&ssl=1","width":657,"height":746,"caption":"Plutohash"},"image":{"@id":"https:\/\/www.plutohash.com\/#logo"}},{"@type":"WebSite","@id":"https:\/\/www.plutohash.com\/#website","url":"https:\/\/www.plutohash.com\/","name":"PlutoHash","description":"Empowering Talents Worldwide","publisher":{"@id":"https:\/\/www.plutohash.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.plutohash.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#primaryimage","inLanguage":"en-US","url":"https:\/\/streetmindfood.com\/plutohash\/wp-content\/uploads\/2021\/03\/screen_tutorial_blocksci.jpg","contentUrl":"https:\/\/streetmindfood.com\/plutohash\/wp-content\/uploads\/2021\/03\/screen_tutorial_blocksci.jpg"},{"@type":"WebPage","@id":"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#webpage","url":"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/","name":"Explore Transaction Fees in a specific Block - PlutoHash","isPartOf":{"@id":"https:\/\/www.plutohash.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#primaryimage"},"datePublished":"2021-02-26T14:30:25+00:00","dateModified":"2021-05-14T09:58:03+00:00","description":"Plutohash is a startup focused on blockchain analytics. We offer practical solutions to perform analytics on blockchain data parsed and ready to be analyzed with friendly tools for data scientists, as Jupyter Notebook and Python language.","breadcrumb":{"@id":"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.plutohash.com\/"},{"@type":"ListItem","position":2,"name":"Explore Transaction Fees in a specific Block"}]},{"@type":"Article","@id":"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#article","isPartOf":{"@id":"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#webpage"},"author":{"@id":"https:\/\/www.plutohash.com\/#\/schema\/person\/f4b24da149e25ea2c3411b565664a45d"},"headline":"Explore Transaction Fees in a specific Block","datePublished":"2021-02-26T14:30:25+00:00","dateModified":"2021-05-14T09:58:03+00:00","mainEntityOfPage":{"@id":"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#webpage"},"wordCount":125,"commentCount":0,"publisher":{"@id":"https:\/\/www.plutohash.com\/#organization"},"image":{"@id":"http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#primaryimage"},"thumbnailUrl":"https:\/\/streetmindfood.com\/plutohash\/wp-content\/uploads\/2021\/03\/screen_tutorial_blocksci.jpg","keywords":["analysis","bitcoin","blockchain","datascience","programming","python"],"articleSection":["PlutoHash Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.plutohash.com\/2021\/02\/26\/explore-transaction-fees-in-a-specific-block\/#respond"]}]},{"@type":"Person","@id":"https:\/\/www.plutohash.com\/#\/schema\/person\/f4b24da149e25ea2c3411b565664a45d","name":"Francesco Zedde","image":{"@type":"ImageObject","@id":"https:\/\/www.plutohash.com\/#personlogo","inLanguage":"en-US","url":"http:\/\/0.gravatar.com\/avatar\/011c5e59cb8321e86b6a18e6d52601b2?s=96&d=mm&r=g","contentUrl":"http:\/\/0.gravatar.com\/avatar\/011c5e59cb8321e86b6a18e6d52601b2?s=96&d=mm&r=g","caption":"Francesco Zedde"},"url":"http:\/\/www.plutohash.com\/author\/francescozedde\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.plutohash.com\/wp-json\/wp\/v2\/posts\/119"}],"collection":[{"href":"http:\/\/www.plutohash.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.plutohash.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.plutohash.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.plutohash.com\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":4,"href":"http:\/\/www.plutohash.com\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":130,"href":"http:\/\/www.plutohash.com\/wp-json\/wp\/v2\/posts\/119\/revisions\/130"}],"wp:attachment":[{"href":"http:\/\/www.plutohash.com\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.plutohash.com\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.plutohash.com\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}