Transaction

b0dcffaedda23d1d8abe5a444f519871a392bb77bd1ada6de5a622d43a4f7fe3
( - )
265,016
2019-04-15 06:27:37
1
8,478 B

1 Output

Total Output:
  • j"19HxigV4QyBv3tHpQVcUEQyq1pzZVdoAutM <!DOCTYPE html> <html> <head><meta name="generator" content="Hexo 3.8.0"> <meta charset="utf-8"> <title>How to Upload Big Files | Monkeylord&#39;s Blog</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="description" content="BackgroundSometimes we need to upload files much bigger than 100KB. In this situation, we need to chunk it up to many chunks. However, due to the 25 tx limit, if we upload them one by one, it will tak"> <meta property="og:type" content="article"> <meta property="og:title" content="How to Upload Big Files"> <meta property="og:url" content="./2019/03/19/How-to-Upload-Big-Files/index.html"> <meta property="og:site_name" content="Monkeylord&#39;s Blog"> <meta property="og:description" content="BackgroundSometimes we need to upload files much bigger than 100KB. In this situation, we need to chunk it up to many chunks. However, due to the 25 tx limit, if we upload them one by one, it will tak"> <meta property="og:locale" content="default"> <meta property="og:updated_time" content="2019-03-19T11:57:12.911Z"> <meta name="twitter:card" content="summary"> <meta name="twitter:title" content="How to Upload Big Files"> <meta name="twitter:description" content="BackgroundSometimes we need to upload files much bigger than 100KB. In this situation, we need to chunk it up to many chunks. However, due to the 25 tx limit, if we upload them one by one, it will tak"> <link rel="icon" href="favicon.png"> <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="../../../../css/style.css"> </head> </html> <body> <div id="container"> <div id="wrap"> <header id="header"> <div id="banner"></div> <div id="header-outer" class="outer"> <div id="header-title" class="inner"> <h1 id="logo-wrap"> <a href="../../../../index.html" id="logo">Monkeylord&#39;s Blog</a> </h1> </div> <div id="header-inner" class="inner"> <nav id="main-nav"> <a id="main-nav-toggle" class="nav-icon"></a> <a class="main-nav-link" href="../../../../index.html">Home</a> <a class="main-nav-link" href="../../../../archives/">Archives</a> </nav> <nav id="sub-nav"> <a id="nav-search-btn" class="nav-icon" title="Search"></a> </nav> <div id="search-form-wrap"> <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="."></form> </div> </div> </div> </header> <div class="outer"> <section id="main"><article id="post-How-to-Upload-Big-Files" class="article article-type-post" itemscope itemprop="blogPost"> <div class="article-meta"> <a href class="article-date"> <time datetime="2019-03-19T11:46:24.000Z" itemprop="datePublished">2019-03-19</time> </a> </div> <div class="article-inner"> <header class="article-header"> <h1 class="article-title" itemprop="name"> How to Upload Big Files </h1> </header> <div class="article-entry" itemprop="articleBody"> <h3 id="Background"><a href="#Background" class="headerlink" title="Background"></a>Background</h3><p>Sometimes we need to upload files much bigger than 100KB.</p> <p>In this situation, we need to chunk it up to many chunks.</p> <p>However, due to the 25 tx limit, if we upload them one by one, it will takes a lot of time.</p> <p>A better upload method is recommended.</p> <h3 id="Upload-Method"><a href="#Upload-Method" class="headerlink" title="Upload Method"></a>Upload Method</h3><p>Input:</p> <ol> <li>private key</li> <li>files</li> </ol> <p>Logic:</p> <ol> <li><p>acquire utxos</p> </li> <li><p>read files as chunks</p> </li> <li><p>generate chunk key by privkey.childKey(chunk’s md5)</p> </li> <li><p>build a master tx from utxo, the tx has</p> <p>inputs from utxos</p> <p>outputs for each file chunk with adequate satoshis</p> <p>change output</p> </li> <li><p>build chunk tx, which has only 1 data output.</p> </li> <li>broadcast them all</li> </ol> <p>If you reach the 25 tx limits, just wait for the confirmation of master tx, then all chunk tx will be accepted.</p> <p>BTW, you can build and broadcast master tx by moneybutton actually.<br>Then, handle the chunk txs.</p> <h3 id="Examples"><a href="#Examples" class="headerlink" title="Examples"></a>Examples</h3><p>Master transaction example:<br> <a href="https://bchsvexplorer.com/tx/3937d759f4a31e1b5eee2e7c192f289f39199ce9b7913bee712bbc9510a511ea" target="_blank" rel="noopener">https://bchsvexplorer.com/tx/3937d759f4a31e1b5eee2e7c192f289f39199ce9b7913bee712bbc9510a511ea</a><br>chunk transaction example(1 in 1 out):<br> <a href="https://bchsvexplorer.com/tx/73192bb6bf6dec79d359e49b9b41355ad83ffec3adbbaf27b71a0ac4668d31d4" target="_blank" rel="noopener">https://bchsvexplorer.com/tx/73192bb6bf6dec79d359e49b9b41355ad83ffec3adbbaf27b71a0ac4668d31d4</a></p> <p>Some code example:</p> <p> <a href="https://github.com/monkeylord/MetaSite-Hammer" target="_blank" rel="noopener">https://github.com/monkeylord/MetaSite-Hammer</a></p> </div> <footer class="article-footer"> <a data-url="./2019/03/19/How-to-Upload-Big-Files/" data-id="cjuhyngfg0002e4ufo7etznib" class="article-share-link">Share</a> </footer> </div> <nav id="article-nav"> <a href="../../20/How-to-Build-an-On-chain-Blog/" id="article-nav-newer" class="article-nav-link-wrap"> <strong class="article-nav-caption">Newer</strong> <div class="article-nav-title"> How to Build an On-chain Blog </div> </a> <a href="../../11/Metanet应用开发/" id="article-nav-older" class="article-nav-link-wrap"> <strong class="article-nav-caption">Older</strong> <div class="article-nav-title">Metanet应用开发</div> </a> </nav> </article> </section> <aside id="sidebar"> <div class="widget-wrap"> <h3 class="widget-title">Archives</h3> <div class="widget"> <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="../../../../archives/2019/04/">April 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="../../../../archives/2019/03/">March 2019</a></li></ul> </div> </div> <div class="widget-wrap"> <h3 class="widget-title">Recent Posts</h3> <div class="widget"> <ul> <li> <a href="../../../04/14/Connecting-to-P2P-Network/">Connecting to P2P Network</a> </li> <li> <a href="../../20/How-to-Build-an-On-chain-Blog/">How to Build an On-chain Blog</a> </li> <li> <a href>How to Upload Big Files</a> </li> <li> <a href="../../11/Metanet应用开发/">Metanet应用开发</a> </li> <li> <a href="../../04/The-Siteloader-is-Released/">The Siteloader is Released.</a> </li> </ul> </div> </div> </aside> </div> <footer id="footer"> <div class="outer"> <div id="footer-info" class="inner"> &copy; 2019 Monkeylord<br> Powered by <a href="http://hexo.io/" target="_blank">Hexo</a> </div> </div> </footer> </div> <nav id="mobile-nav"> <a href="../../../../index.html" class="mobile-nav-link">Home</a> <a href="../../../../archives/" class="mobile-nav-link">Archives</a> </nav> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> <link rel="stylesheet" href="../../../../fancybox/jquery.fancybox.css"> <script src="../../../../fancybox/jquery.fancybox.pack.js"></script> <script src="../../../../js/script.js"></script> </div> </body> </html> text/htmlbinary b9c2db9e02ec8066b54f1aa25790fbf2
    https://whatsonchain.com/tx/b0dcffaedda23d1d8abe5a444f519871a392bb77bd1ada6de5a622d43a4f7fe3