<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Transactions Archives - My Crypto Guide — Crypto, Blockchain &amp; AI Media &amp; Education</title>
	<atom:link href="https://mycryptoguide.co/tag/transactions/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Independent guides, lessons and tools to help you understand crypto safely.</description>
	<lastBuildDate>Thu, 11 Dec 2025 14:01:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://mycryptoguide.co/wp-content/uploads/2025/11/cropped-My-Crypto-Guide-32x32.jpg</url>
	<title>Transactions Archives - My Crypto Guide — Crypto, Blockchain &amp; AI Media &amp; Education</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How Bitcoin Transactions Work &#124; Crypto Guide</title>
		<link>https://mycryptoguide.co/how-bitcoin-transactions-work/</link>
		
		<dc:creator><![CDATA[My Crypto Guide]]></dc:creator>
		<pubDate>Sun, 23 Nov 2025 09:53:22 +0000</pubDate>
				<category><![CDATA[Blockchain Guides]]></category>
		<category><![CDATA[Transactions]]></category>
		<guid isPermaLink="false">https://mycryptoguide.co/?p=7917</guid>

					<description><![CDATA[<p>See what really happens when you hit “send” on a Bitcoin payment — from wallets and addresses to mempool, miners, and confirmations, explained in plain English.</p>
<p>The post <a href="https://mycryptoguide.co/how-bitcoin-transactions-work/">How Bitcoin Transactions Work | Crypto Guide</a> appeared first on <a href="https://mycryptoguide.co">My Crypto Guide — Crypto, Blockchain &amp; AI Media &amp; Education</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="wpb-content-wrapper">
<div class="vc_row wpb_row vc_row-fluid">
		<div class="wpb_column vc_column_container vc_col-sm-8"><div class="vc_column-inner"><div class="wpb_wrapper">
	<div class="wpb_raw_code wpb_raw_html wpb_content_element" >
		<div class="wpb_wrapper">
			<!-- =========================================================
   MCG Blog — LOCKED STYLE
   Title/H1: How Bitcoin Transactions Work
========================================================= -->

<section id="mcg-blog" style="--orange:#f7931a; --orange-2:#ffb347; --ink:#121212; background:#ffffff; color:var(--ink); padding:3.5rem 1.5rem; width:100%; font-family:Arial, Helvetica, sans-serif; line-height:1.75; font-size:17px;">
  <div class="mcg-wrap" style="max-width:1250px; width:100%; margin:0 auto;">

    <!-- Scoped helpers (TOC + minor fallbacks) -->
    <style>
      #mcg-blog .mcg-toc-box{
        border:1px solid #e3e3e3;
        border-radius:10px;
        padding:1.5rem 1.4rem;
        margin:0 0 2.5rem 0;
        background:#fafafa;
      }
      #mcg-blog .mcg-toc-box h2{
        margin:0 0 0.75rem 0;
        font-size:1.6rem;
        color:var(--orange);
      }
      #mcg-blog #toc ul{
        list-style:none;
        padding:0;
        margin:0;
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:0.35rem 1.75rem;
      }
      #mcg-blog #toc li{
        margin:0;
      }
      #mcg-blog #toc a{
        font-size:17px;
        line-height:1.75;
        color:var(--orange);
        font-weight:bold;
        text-decoration:none;
      }
      #mcg-blog #toc a:hover{
        text-decoration:underline;
      }
      @media (max-width:768px){
        #mcg-blog #toc ul{
          grid-template-columns:1fr;
        }
      }
    </style>

    <!-- Hero -->
    <figure class="mcg-hero" style="margin:0 0 1.75rem 0;">
      <img decoding="async" src="https://mycryptoguide.co/wp-content/uploads/2025/11/How-Bitcoin-Transactions-Work.jpg"
           alt="Illustration showing how Bitcoin transactions move between wallets over the network"
           style="width:100%; height:auto; border-radius:10px; display:block;" />
      <figcaption style="text-align:center; color:#777; font-size:0.95rem; margin-top:0.35rem;">
        A visual of Bitcoin moving from one wallet to another across the network.
      </figcaption>
    </figure>

    <!-- Under-hero CTA (Courses) – solid gold panel, black button -->
    <section class="mcg-cta-courses" aria-label="Free crypto courses" style="margin:2.5rem 0 2.75rem 0;">
      <div style="background:#f7931a; border-radius:14px; padding:1.9rem 1.75rem; display:flex; flex-direction:column; gap:0.9rem; box-shadow:0 12px 30px rgba(0,0,0,0.14);">
        <h2 style="margin:0; font-size:1.45rem; color:#111111;">Start with structured lessons before you send your first transaction</h2>
        <p style="margin:0; color:#222222;">
          Build confidence with our <strong>3 free crypto courses</strong> plus one advanced paid toolkit. Learn how wallets, private keys, and transactions work in plain English.
        </p>
        <div style="margin-top:0.35rem;">
          <a href="https://mycryptoguide.co/crypto-courses/" target="_blank" rel="noopener"
             style="display:inline-block; padding:0.8rem 1.6rem; border-radius:999px; border:1px solid #111111; background:#111111; color:#fdfdfd; font-weight:bold; text-decoration:none;">
            Explore the Free Crypto Courses
          </a>
          <p style="margin:0.45rem 0 0; font-size:0.9rem; color:#222222;">
            3 free courses + 1 advanced paid option — start learning without risking your savings.
          </p>
        </div>
      </div>
    </section>

    <!-- TOC (nav#toc for global styling; 2-col via CSS above) -->
    <section class="mcg-toc-box" aria-label="Table of contents">
      <h2>📑 Table of Contents</h2>
      <nav id="toc">
        <ul>
          <li><a href="#what-is-a-bitcoin-transaction">What is a Bitcoin transaction?</a></li>
          <li><a href="#a-simple-story">A simple story: paying a friend back</a></li>
          <li><a href="#anatomy-of-a-transaction">The anatomy of a Bitcoin transaction</a></li>
          <li><a href="#from-wallet-to-mempool">From your wallet to the mempool</a></li>
          <li><a href="#mining-and-confirmations">Mining, blocks, and confirmations</a></li>
          <li><a href="#fees-and-speed">Fees, speed, and stuck transactions</a></li>
          <li><a href="#staying-safe">Staying safe when sending BTC</a></li>
          <li><a href="#wrap-up">Wrap-up: seeing the full journey</a></li>
          <li><a href="#mini-faq">Mini FAQ: Bitcoin transactions</a></li>
        </ul>
      </nav>
    </section>

    <!-- Article body -->
    <article>

      <header style="margin-bottom:1.75rem;">
        <p style="margin:0 0 0.75rem 0; font-size:0.95rem; color:#555;">
          By <strong>Kieran Buckley</strong> — Founder &amp; Educator at My Crypto Guide
        </p>
        <h1 style="margin:0 0 0.9rem 0; font-size:2.2rem; color:var(--orange);">
          How Bitcoin Transactions Work
        </h1>
        <p style="margin:0; font-size:18px; color:#555;">
          If you’ve ever wondered <strong>how Bitcoin transactions work</strong> behind the scenes when you hit “Send”, this guide is for you. We’ll keep it simple, skip the heavy maths, and walk through what really happens on the blockchain from your wallet, to the network, to the final confirmation.
        </p>
      </header>

      <p>
        If you’ve just landed on <a href="https://mycryptoguide.co" target="_blank" rel="noopener">My Crypto Guide</a> from a Google search, welcome. Our goal is to teach everyday people how to use Bitcoin safely in plain English, not scare you away with jargon on day one.
      </p>
      <p>
        And if you’d like to see all our beginner-friendly Bitcoin explainers in one place, you can click here to visit our
        <a href="https://mycryptoguide.co/bitcoin-guides/" target="_blank" rel="noopener">Bitcoin Guides hub</a>, where this article sits alongside wallets, security, fees, and more.
      </p>

      <!-- Section 1 -->
      <h2 id="what-is-a-bitcoin-transaction" style="margin-top:2.4rem; font-size:1.6rem; color:var(--orange);">
        What is a Bitcoin transaction?
      </h2>

      <p>
        A Bitcoin transaction is simply a <strong>message to the network</strong> saying, “Move this amount of bitcoin from these addresses to these new addresses.” The message is digitally signed by the person who controls the coins, and then recorded on the public blockchain so everyone can verify it.
      </p>

      <p>
        Under the hood, Bitcoin doesn’t track one big balance like a bank account. Instead, it uses pieces of bitcoin called <strong>UTXOs</strong> (Unspent Transaction Outputs). Your wallet quietly keeps track of all the little pieces you own and combines or splits them when you send money, a bit like handing over a mix of notes and coins at the checkout.
      </p>

      <p>
        Once a transaction is accepted into a block and confirmed, those UTXOs you spent are marked as “used”, and the new outputs become spendable pieces for the recipient.
      </p>

      <!-- Ledger Banner 1 – LARGE (850×420) -->
      <div style="margin:2.4rem 0 2.1rem 0; text-align:center;">
        <a href="https://shop.ledger.com/pages/ledger-nano-s-plus/?r=1cb27318106e" target="_blank" rel="nofollow sponsored noopener">
          <img fetchpriority="high" decoding="async" width="850" height="420" src="https://affiliate.ledger.com/image/850/420/Default"
               alt="Secure your Bitcoin transactions with a Ledger hardware wallet"
               style="max-width:100%; height:auto; border-radius:10px; display:inline-block;" />
        </a>
      </div>

      <!-- Section 2: Story -->
      <h2 id="a-simple-story" style="margin-top:2.4rem; font-size:1.6rem; color:var(--orange);">
        A simple story: paying a friend back for dinner
      </h2>

      <p>
        Imagine you went out for dinner with your friend Alex. They paid the whole bill, and now you want to send them $50 worth of bitcoin as payback. You open your wallet app, paste Alex’s Bitcoin address, type in the amount, and tap <strong>Send</strong>.
      </p>

      <p>
        In that moment, your wallet doesn’t physically move coins anywhere. Instead, it builds a transaction saying, “Take some of the UTXOs that belong to me, and create new outputs: one to Alex, and one back to me as change.” It signs this message with your private key, proving to the network that you are allowed to spend those coins.
      </p>

      <p>
        Once signed, your wallet broadcasts this transaction to nearby Bitcoin nodes, and your payment begins its journey around the world.
      </p>

      <!-- Crypto Security Tip #1 -->
      <div class="mcg-callout" style="background:#fafafa; border:1px solid #eeeeee; border-radius:8px; padding:1.05rem 1.2rem; margin:2rem 0 2.1rem 0;">
        <p style="margin:0; color:#333;">
          <strong style="color:var(--orange);">Crypto Security Tip:</strong>
          When you’re sending to a new address for the first time, start with a small “test” transaction. Once it arrives, you can safely send the full amount knowing you copied the address correctly.
        </p>
      </div>

      <!-- Section 3: Anatomy -->
      <h2 id="anatomy-of-a-transaction" style="margin-top:2.4rem; font-size:1.6rem; color:var(--orange);">
        The anatomy of a Bitcoin transaction
      </h2>

      <p>
        Let’s zoom in on the pieces your wallet is assembling in the background. A typical transaction has three main parts:
      </p>

      <p><strong>1. Inputs – where the coins are coming from</strong><br>
        Inputs reference UTXOs you already own. Think of them as the “notes and coins” you’re spending. Your wallet chooses which ones to use based on size and efficiency.
      </p>

      <p><strong>2. Outputs – where the coins are going</strong><br>
        Outputs create new UTXOs. One goes to Alex’s address for the dinner bill, and one usually goes back to a new address in your own wallet as “change”. This is why the address you send from and the address you receive change to aren’t always the same.
      </p>

      <p><strong>3. Digital signature – proof it’s really you</strong><br>
        To stop anyone else from spending your coins, Bitcoin uses public–private key cryptography. Your wallet signs the transaction with your private key, and the network checks that signature against your public key to confirm it’s valid.
      </p>

      <p>
        The beauty is that all of this happens in milliseconds. You never see the raw data, but it’s all there in every transaction recorded on the blockchain.
      </p>

      <!-- Mid-article CTA (Courses) – solid black panel, gold button -->
      <section class="mcg-cta-courses" aria-label="Free crypto courses" style="margin:2.7rem 0 2.6rem 0;">
        <div style="background:#111111; border-radius:14px; padding:1.9rem 1.75rem; display:flex; flex-direction:column; gap:0.9rem; box-shadow:0 12px 30px rgba(0,0,0,0.18);">
          <h2 style="margin:0; font-size:1.45rem; color:#fdfdfd;">Want to practise this step-by-step?</h2>
          <p style="margin:0; color:#e2e6f0;">
            Our <strong>free Beginner Course</strong> shows you how to create a wallet, understand addresses, and review real transactions — before you risk money on an exchange.
          </p>
          <div style="margin-top:0.35rem;">
            <a href="https://mycryptoguide.co/crypto-courses/" target="_blank" rel="noopener"
               style="display:inline-block; padding:0.8rem 1.6rem; border-radius:999px; border:1px solid #f7931a; background:#f7931a; color:#111111; font-weight:bold; text-decoration:none;">
              Explore the Free Crypto Courses
            </a>
            <p style="margin:0.45rem 0 0; font-size:0.9rem; color:#c7d0e0;">
              3 free courses + 1 advanced paid option — build a foundation before you invest.
            </p>
          </div>
        </div>
      </section>

      <!-- Section 4: Wallet to mempool -->
      <h2 id="from-wallet-to-mempool" style="margin-top:2.4rem; font-size:1.6rem; color:var(--orange);">
        From your wallet to the mempool
      </h2>

      <p>
        Once your wallet has built and signed the transaction, it <strong>broadcasts</strong> it to the Bitcoin network. It sends the data to one or more nodes (computers running Bitcoin software), which then check some basic rules:
      </p>

      <p>
        Is the signature valid? Are the inputs unspent? Does the transaction obey size limits? Is the fee reasonable? If everything looks good, the node adds the transaction into its temporary holding area called the <strong>mempool</strong> (memory pool).
      </p>

      <p>
        You can think of the mempool as a giant waiting room. Thousands of transactions sit there, each offering a fee. Miners usually pick the ones that pay the highest fees first because that’s how they earn extra income on top of the block reward.
      </p>

      <p>
        If you’d like to understand the energy and hardware that keeps this system running, have a read of our guide
        on <a href="https://mycryptoguide.co/how-much-energy-does-bitcoin-use/" target="_blank" rel="noopener">how much energy Bitcoin uses</a> and how that relates to mining.
      </p>

      <!-- Ledger Banner 2 – SMALL (728×90) in the middle position -->
      <div style="margin:2.3rem 0 2.1rem 0; text-align:center;">
        <a href="https://shop.ledger.com/pages/ledger-nano-s-plus/?r=1cb27318106e" target="_blank" rel="nofollow sponsored noopener">
          <img decoding="async" width="728" height="90" src="https://affiliate.ledger.com/image/728/90/Default"
               alt="Ledger Nano S Plus promotion banner"
               style="max-width:100%; height:auto; border-radius:10px; display:inline-block;" />
        </a>
      </div>

      <!-- Section 5: Mining and confirmations -->
      <h2 id="mining-and-confirmations" style="margin-top:2.4rem; font-size:1.6rem; color:var(--orange);">
        Mining, blocks, and confirmations
      </h2>

      <p>
        Miners collect a batch of transactions from the mempool and try to fit them into a new <strong>block</strong>. Each block has a limited size, so they prioritise transactions by fee, filling the block with the most profitable mix they can find.
      </p>

      <p>
        While they do this, miners are also competing in a proof-of-work puzzle. When one miner finds a valid solution, they broadcast their block to the network. Other nodes quickly check that:
      </p>

      <p>
        – All transactions follow the rules<br>
        – No coins were created out of thin air<br>
        – The proof-of-work is valid<br>
      </p>

      <p>
        If everything passes, the block is accepted, added to the end of the blockchain, and your transaction receives its <strong>first confirmation</strong>. When later blocks are added on top, each one counts as another confirmation, making it harder and harder to reverse.
      </p>

      <p>
        For everyday amounts, many people are comfortable with 1–3 confirmations. For very large transfers, exchanges might wait for 6 or more. More confirmations = more security.
      </p>

      <!-- Section 6: Fees and speed -->
      <h2 id="fees-and-speed" style="margin-top:2.4rem; font-size:1.6rem; color:var(--orange);">
        Fees, speed, and “stuck” transactions
      </h2>

      <p>
        Bitcoin transaction fees aren’t based on how much money you send; they’re based on <strong>how much data</strong> your transaction uses and how busy the network is. A transaction with lots of inputs (many small UTXOs) can be larger in size and therefore cost more in fees.
      </p>

      <p>
        Most modern wallets estimate a fee for you and show options like <em>slow</em>, <em>normal</em>, or <em>fast</em>. During quiet times, you can get away with a low fee and still get into the next block. During busy periods, a low-fee transaction might sit in the mempool for hours or even days.
      </p>

      <p>
        Some wallets support features like <strong>Replace-By-Fee (RBF)</strong>, where you can resend the same transaction with a higher fee to speed it up. Others allow a “child-pays-for-parent” trick, where a new transaction with a high fee pulls an older, stuck one through.
      </p>

      <!-- Ledger Banner 3 – LARGE (850×420) near the end -->
      <div style="margin:2.4rem 0 2.1rem 0; text-align:center;">
        <a href="https://shop.ledger.com/pages/ledger-nano-s-plus/?r=1cb27318106e" target="_blank" rel="nofollow sponsored noopener">
          <img decoding="async" width="850" height="420" src="https://affiliate.ledger.com/image/850/420/Default"
               alt="Protect your Bitcoin with a Ledger hardware wallet"
               style="max-width:100%; height:auto; border-radius:10px; display:inline-block;" />
        </a>
      </div>

      <!-- Crypto Security Tip #2 -->
      <div class="mcg-callout" style="background:#fafafa; border:1px solid #eeeeee; border-radius:8px; padding:1.05rem 1.2rem; margin:2rem 0 2.1rem 0;">
        <p style="margin:0; color:#333;">
          <strong style="color:var(--orange);">Crypto Security Tip:</strong>
          Never feel rushed into sending a large amount quickly with “max fee” just because someone is pressuring you. Scammers love urgency. Take a breath, double-check the address, and if in doubt, cancel the deal.
        </p>
      </div>

      <!-- Section 7: Staying safe -->
      <h2 id="staying-safe" style="margin-top:2.4rem; font-size:1.6rem; color:var(--orange);">
        Staying safe when sending Bitcoin
      </h2>

      <p>
        Bitcoin transactions are powerful because they’re <strong>hard to reverse</strong>. That’s great for avoiding chargeback fraud, but it also means mistakes are permanent. If you send coins to the wrong address, there’s no support line to call and undo it.
      </p>

      <p>
        That’s why security and self-custody go hand in hand. If you’d like a deeper walk-through, including hardware wallets, seed phrases, and common scams, click here to read our guide on
        <a href="https://mycryptoguide.co/how-to-self-custody-bitcoin/" target="_blank" rel="noopener">how to self-custody Bitcoin</a>.
      </p>

      <p>
        For a more structured learning path that ties transactions, wallets, and exchanges together, you can also click here to open our
        <a href="https://mycryptoguide.co/crypto-education/" target="_blank" rel="noopener">Crypto Education Hub</a>, where we’ve organised all our guides, tools, and courses in one place.
      </p>

      <p>
        And if you want more explainers, comparisons, and beginner-friendly breakdowns, click here to browse our
        <a href="https://mycryptoguide.co/blog/" target="_blank" rel="noopener">media hub of crypto guides</a>.
      </p>

      <!-- Wrap-up -->
      <section id="wrap-up" style="margin-top:2.75rem;">
        <div style="background:rgba(247,147,26,0.06); border:1px solid rgba(247,147,26,0.5); border-radius:11px; padding:1.6rem 1.5rem; box-shadow:0 10px 30px rgba(0,0,0,0.04);">
          <h2 style="margin-top:0; font-size:1.6rem; color:var(--orange);">Wrap-up: seeing the full journey of a Bitcoin transaction</h2>
          <p style="margin-top:0.4rem;">
            When you strip away the jargon, a Bitcoin transaction is just a signed message telling the network how to move value from one set of UTXOs to another. Your wallet builds the message, your private key signs it, nodes verify it, miners add it to a block, and confirmations make it stronger over time.
          </p>
          <p>
            Once you understand this flow, Bitcoin feels a lot less like magic internet money and a lot more like a transparent, auditable payment system. You can watch your transaction in a block explorer, see the mempool, and even track which block it landed in.
          </p>
          <p>
            If you’d like to keep learning the safe way, our free courses and guides on <a href="https://mycryptoguide.co" target="_blank" rel="noopener">My Crypto Guide</a> are designed to help you build a solid foundation before you invest serious money.
          </p>
        </div>
      </section>

      <!-- Mini FAQ -->
      <section id="mini-faq" style="margin-top:2.75rem;">
        <h2 style="font-size:1.6rem; color:var(--orange); margin-top:0;">Mini FAQ: Bitcoin transactions</h2>

        <h3 style="font-size:1.15rem; margin-top:1.4rem;">How long does a Bitcoin transaction take?</h3>
        <p>
          It depends on the fee you paid and how busy the network is. In quiet times, a well-priced transaction often confirms in the next block (roughly 10 minutes). In busy periods with low fees, it can take hours or even days to be included.
        </p>

        <h3 style="font-size:1.15rem; margin-top:1.4rem;">How many confirmations should I wait for?</h3>
        <p>
          For small everyday amounts, many people are happy with one confirmation. For larger purchases, exchanges and merchants often wait for three to six confirmations. More confirmations make it exponentially harder for anyone to reverse the transaction.
        </p>

        <h3 style="font-size:1.15rem; margin-top:1.4rem;">Can I cancel or reverse a Bitcoin transaction?</h3>
        <p>
          Once a transaction has been confirmed in a block, it is effectively irreversible. If it is still in the mempool, some wallets let you replace it with a higher-fee version, but you should always assume that once sent, it is final.
        </p>
      </section>

      <!-- Bottom CTA (Courses) – solid gold panel, black button -->
      <section class="mcg-cta-courses" aria-label="Free crypto courses" style="margin:3rem 0 0.5rem 0;">
        <div style="background:#f7931a; border-radius:14px; padding:2rem 1.8rem; display:flex; flex-direction:column; gap:0.9rem; text-align:left; box-shadow:0 14px 36px rgba(0,0,0,0.16);">
          <h2 style="margin:0; font-size:1.55rem; color:#111111;">Ready to go deeper than one article?</h2>
          <p style="margin:0; color:#222222;">
            Join thousands of readers who are learning crypto step-by-step. Our <strong>three main courses are free</strong>, and you can unlock the advanced Crypto Security Toolkit when you’re ready.
          </p>
          <div style="margin-top:0.45rem;">
            <a href="https://mycryptoguide.co/crypto-courses/" target="_blank" rel="noopener"
               style="display:inline-block; padding:0.9rem 1.8rem; border-radius:999px; border:1px solid #111111; background:#111111; color:#fdfdfd; font-weight:bold; text-decoration:none;">
              Explore the Free Crypto Courses
            </a>
            <p style="margin:0.55rem 0 0; font-size:0.9rem; color:#222222;">
              3 free courses + 1 advanced paid option — build confidence before you invest.
            </p>
          </div>
        </div>
      </section>

    </article>
  </div>
</section>

<!-- ===========================
     SEO Meta (for HEAD)
=========================== -->
<title>How Bitcoin Transactions Work | Crypto Guide</title>
<meta name="description" content="Learn how Bitcoin transactions work step by step, from your wallet to the blockchain, with simple explanations of fees, the mempool, miners, and confirmations.">
<link rel="canonical" href="https://mycryptoguide.co/how-bitcoin-transactions-work/">

<meta property="og:type" content="article">
<meta property="og:title" content="How Bitcoin Transactions Work | Crypto Guide">
<meta property="og:description" content="Learn how Bitcoin transactions work step by step, from your wallet to the blockchain, with simple explanations of fees, the mempool, miners, and confirmations.">
<meta property="og:url" content="https://mycryptoguide.co/how-bitcoin-transactions-work/">
<meta property="og:site_name" content="My Crypto Guide">
<meta property="og:image" content="https://mycryptoguide.co/wp-content/uploads/2025/11/How-Bitcoin-Transactions-Work.jpg">
<meta property="og:image:width" content="1600">
<meta property="og:image:height" content="900">

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="How Bitcoin Transactions Work | Crypto Guide">
<meta name="twitter:description" content="Learn how Bitcoin transactions work step by step, from your wallet to the blockchain, with simple explanations of fees, the mempool, miners, and confirmations.">
<meta name="twitter:image" content="https://mycryptoguide.co/wp-content/uploads/2025/11/How-Bitcoin-Transactions-Work.jpg">

<!-- ===========================
     JSON-LD (move to HEAD)
=========================== -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "WebSite",
      "@id": "https://mycryptoguide.co/#website",
      "url": "https://mycryptoguide.co/",
      "name": "My Crypto Guide",
      "description": "Independent crypto, blockchain and AI education — learn how Bitcoin, blockchains and AI tools work, and how to use them safely.",
      "publisher": {
        "@id": "https://mycryptoguide.co/#organization"
      },
      "potentialAction": {
        "@type": "SearchAction",
        "target": "https://mycryptoguide.co/?s={search_term_string}",
        "query-input": "required name=search_term_string"
      }
    },
    {
      "@type": "Organization",
      "@id": "https://mycryptoguide.co/#organization",
      "name": "My Crypto Guide",
      "url": "https://mycryptoguide.co/",
      "logo": {
        "@type": "ImageObject",
        "url": "https://mycryptoguide.co/wp-content/uploads/2025/07/ChatGPT-Image-Jul-21-2025-at-10_46_45-AM.png"
      }
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://mycryptoguide.co/how-bitcoin-transactions-work/#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://mycryptoguide.co/"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Bitcoin Guides",
          "item": "https://mycryptoguide.co/bitcoin-guides/"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "How Bitcoin Transactions Work",
          "item": "https://mycryptoguide.co/how-bitcoin-transactions-work/"
        }
      ]
    },
    {
      "@type": "Article",
      "@id": "https://mycryptoguide.co/how-bitcoin-transactions-work/#article",
      "isPartOf": {
        "@id": "https://mycryptoguide.co/#website"
      },
      "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://mycryptoguide.co/how-bitcoin-transactions-work/"
      },
      "headline": "How Bitcoin Transactions Work",
      "description": "Learn how Bitcoin transactions work step by step, from your wallet to the blockchain, with simple explanations of fees, the mempool, miners, and confirmations.",
      "image": [
        "https://mycryptoguide.co/wp-content/uploads/2025/11/How-Bitcoin-Transactions-Work.jpg"
      ],
      "author": {
        "@type": "Person",
        "name": "Kieran Buckley",
        "description": "Founder & Educator at My Crypto Guide.",
        "url": "https://mycryptoguide.co/about/"
      },
      "publisher": {
        "@id": "https://mycryptoguide.co/#organization"
      },
      "articleSection": [
        "Bitcoin basics",
        "Transactions",
        "Security"
      ]
    },
    {
      "@type": "FAQPage",
      "@id": "https://mycryptoguide.co/how-bitcoin-transactions-work/#faq",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "How long does a Bitcoin transaction take?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "It depends on the fee you paid and how busy the network is. In quiet times, a well-priced transaction often confirms in the next block (roughly 10 minutes). In busy periods with low fees, it can take hours or even days to be included."
          }
        },
        {
          "@type": "Question",
          "name": "How many confirmations should I wait for?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "For small everyday amounts, many people are happy with one confirmation. For larger purchases, exchanges and merchants often wait for three to six confirmations. More confirmations make it exponentially harder for anyone to reverse the transaction."
          }
        },
        {
          "@type": "Question",
          "name": "Can I cancel or reverse a Bitcoin transaction?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Once a transaction has been confirmed in a block, it is effectively irreversible. If it is still in the mempool, some wallets let you replace it with a higher-fee version, but you should always assume that once sent, it is final."
          }
        }
      ]
    }
  ]
}
</script>

		</div>
	</div>
</div></div></div><div class="wpb_column vc_column_container vc_col-sm-4"><div class="vc_column-inner"><div class="wpb_wrapper"><div  class="wpb_widgetised_column wpb_content_element">
		<div class="wpb_wrapper">
			
			<div id="block-30" class="widget widget_block"><!-- =========================
  MCG Premium Blog Sidebar (About → BTC → Signup → Courses → Lab/Hub → Latest posts x8)
  Drop into a Custom HTML widget or WPBakery Raw HTML on blog templates
  ========================= -->
<aside id="mcg-sidebar" role="complementary" aria-label="Article sidebar">
  <div class="mcg-stack">

    <!-- BTC TIP (NEW - matches dark system, same size feel as About) -->
    <section class="mcg-card mcg-tip" aria-labelledby="mcg-tip-title">
      <div class="mcg-btc-header">
        <div class="mcg-btc-pill" aria-hidden="true">₿</div>
        <div>
          <h2 id="mcg-tip-title" class="mcg-title" style="color:var(--accent); margin-bottom:2px;">
            Support MCG with a Bitcoin Tip
          </h2>
          <p class="mcg-muted mcg-btc-caption" style="margin:0;">
            Help us keep the majority of our content free.
          </p>
        </div>
      </div>

      <div style="text-align:center; margin:12px 0 10px;">
        <img
          src="https://amn.shq.mybluehost.me/wp-content/uploads/2025/12/IMG_5116D7FBBD35-1.jpeg"
          alt="Bitcoin tip QR code"
          loading="lazy"
          decoding="async"
          style="width:180px; max-width:100%; height:auto; border-radius:12px; display:inline-block;"
        >
      </div>

      <button
        class="mcg-btn mcg-btn--ghost mcg-tip-copy"
        type="button"
        data-btc="bc1qufpdkyjtzeskrh9fjlrwnkamp076h7ygmlat0f"
        style="width:100%;"
      >
        Copy Bitcoin address
      </button>

      <p class="mcg-note" style="text-align:center; margin-top:10px;">
        Thank you — it genuinely helps.
      </p>
    </section>

    <!-- ABOUT (top) -->
    <section class="mcg-card mcg-about" aria-labelledby="mcg-about-title">
      <h2 id="mcg-about-title" class="mcg-title">About My Crypto Guide</h2>
      <p class="mcg-text">
        My Crypto Guide is an <strong>independent crypto education platform</strong>. We don’t run an exchange and we don’t tell you what to buy — we explain how crypto and Bitcoin actually work, in plain English, so you can make your own decisions.
      </p>
      <p class="mcg-text">
        Learn how to buy, move, and secure crypto step-by-step, then <em>practice safely</em> in the Crypto Tools Lab before you risk a dollar.
      </p>
      <ul class="mcg-tags">
        <li><span class="mcg-tag">Independent</span></li>
        <li><span class="mcg-tag">Education-only</span></li>
        <li><span class="mcg-tag">Security-first</span></li>
      </ul>
      <!-- Orange accent button → Home -->
      <a class="mcg-btn mcg-btn--accent" href="/">Find out more</a>
    </section>

    <!-- LIVE BITCOIN PRICE (BTC in AUD & USD) -->
    <section class="mcg-card mcg-btc" aria-labelledby="mcg-btc-title">
      <div class="mcg-btc-header">
        <div class="mcg-btc-pill">₿</div>
        <div>
          <h2 id="mcg-btc-title" class="mcg-title mcg-btc-title">Live Bitcoin Price</h2>
          <p class="mcg-muted mcg-btc-caption">For context only — not financial or investment advice.</p>
        </div>
      </div>

      <div class="mcg-btc-grid">
        <div class="mcg-btc-line">
          <span class="mcg-btc-label">BTC in AUD</span>
          <span class="mcg-btc-right">
            <span class="mcg-btc-price" id="mcg-btc-aud">–</span>
            <span class="mcg-btc-change" id="mcg-btc-aud-change">–</span>
          </span>
        </div>
        <div class="mcg-btc-line">
          <span class="mcg-btc-label">BTC in USD</span>
          <span class="mcg-btc-right">
            <span class="mcg-btc-price" id="mcg-btc-usd">–</span>
            <span class="mcg-btc-change" id="mcg-btc-usd-change">–</span>
          </span>
        </div>
      </div>

      <div class="mcg-btc-meta">
        <span class="mcg-btc-dot" aria-hidden="true"></span>
        <span class="mcg-btc-updated" id="mcg-btc-updated">Connecting to price feed…</span>
      </div>
    </section>

    <!-- EMAIL SIGNUP (premium card) -->
    <section class="mcg-card mcg-news" aria-labelledby="mcg-news-title">
      <h2 id="mcg-news-title" class="mcg-title">Hype-free crypto education</h2>
      <p class="mcg-muted">Short, practical emails that help you understand crypto — no price calls, no trading signals, no investment advice.</p>

      <!-- Replace the form below with your newsletter shortcode if you use a plugin.
           Keep the .mcg-form wrapper so styles apply automatically. -->
      <form class="mcg-form" action="/newsletter/" method="post" novalidate>
        <label class="sr-only" for="mcg-name">Your name</label>
        <input id="mcg-name" name="name" type="text" placeholder="Your name (optional)" autocomplete="name">
        <label class="sr-only" for="mcg-email">Email address</label>
        <input id="mcg-email" name="email" type="email" placeholder="Email address" required autocomplete="email">
        <button class="mcg-btn mcg-btn--accent" type="submit">Join the newsletter</button>
        <p class="mcg-legal">
          No spam. Unsubscribe anytime. Educational content only — <strong>not</strong> financial or investment advice.
          <a href="/privacy-policy/">Privacy</a>
        </p>
      </form>
    </section>

    <!-- COURSES (all FREE) -->
    <section class="mcg-card mcg-courses" aria-labelledby="mcg-courses-title">
      <h2 id="mcg-courses-title" class="mcg-title">Free Courses</h2>
      <ul class="mcg-list">
        <li>
          <a class="mcg-link" href="/crypto-courses/crypto-for-beginners-course/">
            <span class="mcg-link-main">Beginner</span>
            <span class="mcg-link-sub">Foundations, safety, first steps</span>
            <span class="mcg-chip">FREE</span>
          </a>
        </li>
        <li>
          <a class="mcg-link" href="/crypto-courses/intermediate-crypto-course/">
            <span class="mcg-link-main">Intermediate</span>
            <span class="mcg-link-sub">Wallets, sending, real-world skills</span>
            <span class="mcg-chip">FREE</span>
          </a>
        </li>
        <li>
          <a class="mcg-link" href="/crypto-courses/advanced-crypto-course/">
            <span class="mcg-link-main">Advanced</span>
            <span class="mcg-link-sub">Security &amp; advanced concepts</span>
            <span class="mcg-chip">FREE</span>
          </a>
        </li>
      </ul>
    </section>

    <!-- PRACTICE & EXPLORE -->
    <section class="mcg-card mcg-actions">
      <div class="mcg-actions-grid">
        <a class="mcg-btn mcg-btn--accent" href="/crypto-education/">Crypto Lab</a>
        <a class="mcg-btn mcg-btn--ghost"  href="/blog/">Media Hub</a>
      </div>
      <p class="mcg-note">
        Tip: start with the free courses, then try a small test transaction in the Lab tools before using meaningful funds.
      </p>
    </section>

    <!-- LATEST POSTS (auto via WP REST API) -->
    <section class="mcg-card mcg-recent" aria-labelledby="mcg-recent-title">
      <h2 id="mcg-recent-title" class="mcg-title">Latest from the blog</h2>
      <ul class="mcg-recent-list" id="mcg-recent-list">
        <!-- skeletons (auto-replaced) -->
        <li class="mcg-recent-skel"></li>
        <li class="mcg-recent-skel"></li>
        <li class="mcg-recent-skel"></li>
        <li class="mcg-recent-skel"></li>
        <li class="mcg-recent-skel"></li>
        <li class="mcg-recent-skel"></li>
        <li class="mcg-recent-skel"></li>
        <li class="mcg-recent-skel"></li>
      </ul>
    </section>

  </div>

  <style>
    /* ===== Tokens (scoped) ===== */
    #mcg-sidebar{
      --bg:#0f1319;
      --surface:#121722;
      --surface-2:#0f141c;
      --line:#1b2330;
      --ink:#eef2f6;
      --muted:#99a3b3;
      --accent:#f7931a;
      --radius:18px;
      --shadow:0 10px 28px rgba(0,0,0,.28);
      --sticky-top:84px; /* adjust for your sticky header */
      font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      color:var(--ink);
      position:sticky; top:var(--sticky-top); z-index:2;
    }

    /* Layout */
    #mcg-sidebar .mcg-stack{display:flex; flex-direction:column; gap:18px;}
    #mcg-sidebar .mcg-card{
      background:
        radial-gradient(700px 220px at 0% -40%, rgba(247,147,26,.06), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
        var(--surface);
      border:1px solid var(--line);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      padding:16px 14px;
    }
    #mcg-sidebar .mcg-title{
      margin:0 0 10px; font-size:1.05rem; font-weight:800; letter-spacing:.2px; color:var(--ink);
    }
    /* About heading in orange */
    #mcg-sidebar .mcg-about .mcg-title{ color:var(--accent); }

    #mcg-sidebar .mcg-text{margin:.2rem 0 .6rem; color:var(--ink); font-size:.98rem; line-height:1.6}
    #mcg-sidebar .mcg-muted{margin:0 0 10px; color:var(--muted); font-size:.95rem}
    #mcg-sidebar .mcg-note{margin:.6rem 0 0; color:var(--muted); font-size:.9rem}

    /* Tags */
    #mcg-sidebar .mcg-tags{display:flex; flex-wrap:wrap; gap:6px; margin:.4rem 0 .6rem; padding:0; list-style:none}
    #mcg-sidebar .mcg-tag{
      display:inline-block; padding:4px 10px; border-radius:999px; font-weight:800; font-size:.82rem;
      color:#cfe1ff; border:1px solid #2a3447; background:rgba(255,255,255,.02);
    }

    /* BTC CARD */
    #mcg-sidebar .mcg-btc{
      position:relative;
      overflow:hidden;
      background:
        radial-gradient(900px 280px at 0% -60%, rgba(247,147,26,.16), transparent 55%),
        linear-gradient(160deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
        var(--surface-2);
      border-color:#2b364a;
    }
    #mcg-sidebar .mcg-btc::before{
      content:"";
      position:absolute;
      inset:-40%;
      background:radial-gradient(circle at 10% 0%, rgba(247,147,26,.15), transparent 55%);
      opacity:.9;
      mix-blend-mode:screen;
      pointer-events:none;
    }
    #mcg-sidebar .mcg-btc-header{
      position:relative;
      display:flex;
      align-items:center;
      gap:10px;
      margin-bottom:8px;
      z-index:1;
    }
    #mcg-sidebar .mcg-btc-title{color:var(--ink); margin-bottom:2px;}
    #mcg-sidebar .mcg-btc-caption{margin:0; font-size:.87rem;}

    #mcg-sidebar .mcg-btc-pill{
      width:32px; height:32px; border-radius:999px;
      display:flex; align-items:center; justify-content:center;
      background:radial-gradient(circle at 30% 0%, #ffe0a8, #f7931a);
      color:#111; font-weight:900; font-size:1.05rem;
      box-shadow:0 0 0 1px rgba(0,0,0,.4), 0 0 22px rgba(247,147,26,.65);
      flex-shrink:0;
    }

    #mcg-sidebar .mcg-btc-grid{
      position:relative;
      display:flex; flex-direction:column; gap:8px;
      margin-top:6px; padding-top:4px;
      z-index:1;
    }
    #mcg-sidebar .mcg-btc-line{
      display:flex; align-items:baseline; justify-content:space-between; gap:10px;
      padding:6px 8px;
      border-radius:12px;
      background:rgba(7,10,16,.7);
      border:1px solid rgba(255,255,255,.03);
    }
    #mcg-sidebar .mcg-btc-label{
      font-size:.82rem; text-transform:uppercase; letter-spacing:.12em;
      color:var(--muted);
      white-space:nowrap;
    }
    #mcg-sidebar .mcg-btc-right{
      display:flex; align-items:baseline; gap:6px; justify-content:flex-end; min-width:0;
    }
    #mcg-sidebar .mcg-btc-price{
      font-size:1.02rem; font-weight:800; white-space:nowrap;
    }
    #mcg-sidebar .mcg-btc-change{
      font-size:.86rem; color:var(--muted); white-space:nowrap;
    }
    #mcg-sidebar .mcg-btc-change--up{color:#19c37d;}
    #mcg-sidebar .mcg-btc-change--down{color:#ff5a5f;}

    #mcg-sidebar .mcg-btc-meta{
      position:relative;
      display:flex; align-items:center; gap:6px;
      margin-top:8px;
      font-size:.82rem; color:var(--muted);
      z-index:1;
    }
    #mcg-sidebar .mcg-btc-dot{
      width:7px; height:7px; border-radius:50%;
      background:#19c37d;
      box-shadow:0 0 0 0 rgba(25,195,125,.7);
      animation:mcg-btc-pulse 1.4s infinite;
      flex-shrink:0;
    }
    #mcg-sidebar .mcg-btc-updated{white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

    @keyframes mcg-btc-pulse{
      0%{transform:scale(1); box-shadow:0 0 0 0 rgba(25,195,125,.7);}
      70%{transform:scale(1.25); box-shadow:0 0 0 8px rgba(25,195,125,0);}
      100%{transform:scale(1); box-shadow:0 0 0 0 rgba(25,195,125,0);}
    }

    /* Form */
    #mcg-sidebar .mcg-form{display:grid; gap:10px; margin-top:8px}
    #mcg-sidebar .mcg-form input{
      width:100%; padding:12px 12px; border-radius:12px;
      border:1px solid var(--line); background:var(--surface-2); color:var(--ink); outline:none;
      transition:border-color .15s ease, box-shadow .15s ease;
    }
    #mcg-sidebar .mcg-form input:focus{
      border-color:#2b3a52;
      box-shadow:0 0 0 3px rgba(247,147,26,.15);
    }
    #mcg-sidebar .mcg-form .mcg-legal{margin:2px 0 0; font-size:.85rem; color:var(--muted)}
    #mcg-sidebar .mcg-form .mcg-legal a{color:#cfe1ff; text-decoration:underline}

    /* Buttons */
    #mcg-sidebar .mcg-btn{
      display:inline-flex; align-items:center; justify-content:center; gap:8px;
      padding:12px 14px; border-radius:12px; font-weight:900; text-decoration:none; cursor:pointer;
      border:1px solid var(--line); color:var(--ink); background:transparent;
      transition:background .15s ease, border-color .15s ease, transform .15s ease;
    }
    #mcg-sidebar .mcg-btn:hover{border-color:#2b3a52; background:#121a27; transform:translateY(-1px);}
    #mcg-sidebar .mcg-btn--accent{
      border:0; color:#111;
      background:linear-gradient(180deg, #f8ae4e, #f7931a);
      box-shadow:0 8px 24px rgba(247,147,26,.2);
    }
    #mcg-sidebar .mcg-btn--accent:hover{filter:brightness(.98); transform:translateY(-1px);}
    #mcg-sidebar .mcg-btn--ghost{background:transparent}

    /* Courses list */
    #mcg-sidebar .mcg-list{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px}
    #mcg-sidebar .mcg-link{
      position:relative; display:flex; flex-direction:column; gap:2px;
      padding:10px 12px; border-radius:12px; text-decoration:none;
      background:var(--surface-2); border:1px solid var(--line);
      transition:transform .15s ease, border-color .15s ease, background .15s ease;
      color:var(--ink);
    }
    #mcg-sidebar .mcg-link:hover{
      transform:translateY(-1px);
      border-color:#263247;
      background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)), var(--surface-2);
    }
    #mcg-sidebar .mcg-link-main{font-weight:900; letter-spacing:.2px;}
    #mcg-sidebar .mcg-link-sub{font-size:.92rem; color:var(--muted)}
    #mcg-sidebar .mcg-chip{
      position:absolute; right:10px; top:10px;
      padding:3px 8px; border-radius:999px; font-size:.78rem; font-weight:800; color:#111;
      background:linear-gradient(180deg, #f9a43a, #f7931a);
      border:0;
    }

    /* Actions */
    #mcg-sidebar .mcg-actions-grid{display:flex; gap:10px; flex-wrap:wrap}

    /* Recent posts (8) */
    #mcg-sidebar .mcg-recent-list{
      list-style:none; margin:0; padding:0; display:grid; gap:12px;
    }
    #mcg-sidebar .mcg-recent-item{
      display:grid; grid-template-columns:88px 1fr; gap:10px;
      align-items:center; border:1px solid var(--line); border-radius:14px;
      background:var(--surface-2); overflow:hidden; text-decoration:none; color:var(--ink);
      transition:transform .15s ease, border-color .15s ease, background .15s ease;
    }
    #mcg-sidebar .mcg-recent-item:hover{
      transform:translateY(-1px); border-color:#263247;
      background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)), var(--surface-2);
    }
    #mcg-sidebar .mcg-thumb{
      position:relative; width:88px; height:62px; overflow:hidden; background:#0f141c; border-right:1px solid var(--line);
    }
    #mcg-sidebar .mcg-thumb img{
      width:100%; height:100%; object-fit:cover; display:block; filter:saturate(.98) contrast(1.02);
    }
    #mcg-sidebar .mcg-meta{padding-right:10px; min-width:0}
    #mcg-sidebar .mcg-post-title{
      margin:.1rem 0 0; font-weight:900; font-size:.96rem; line-height:1.25; color:var(--ink);
      display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    }
    #mcg-sidebar .mcg-date{font-size:.85rem; color:var(--muted); margin:.15rem 0 0}

    /* Skeletons */
    #mcg-sidebar .mcg-recent-skel{
      height:62px; border:1px solid var(--line); border-radius:14px; overflow:hidden; position:relative;
      background:linear-gradient(90deg, rgba(255,255,255,.03) 25%, rgba(255,255,255,.06) 37%, rgba(255,255,255,.03) 63%);
      background-size:400% 100%; animation:mcg-shimmer 1.2s infinite linear;
    }
    @keyframes mcg-shimmer{0%{background-position:100% 0}100%{background-position:0 0}}

    /* Mobile: non-sticky */
    @media (max-width: 1023px){ #mcg-sidebar{position:static; top:auto} }

    /* Accessibility helper */
    #mcg-sidebar .sr-only{
      position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px);
      white-space:nowrap; border:0; padding:0; margin:-1px;
    }
  </style>

  <script>
    /* ===== BTC TIP: copy-to-clipboard (scoped, safe) ===== */
    (function(){
      var btn = document.querySelector('#mcg-sidebar .mcg-tip .mcg-tip-copy');
      if(!btn) return;

      btn.addEventListener('click', function(){
        var address = btn.getAttribute('data-btc') || '';
        if(!address) return;

        var original = btn.textContent;

        function done(){
          btn.textContent = 'Copied!';
          setTimeout(function(){ btn.textContent = original; }, 1500);
        }

        // Clipboard API (preferred)
        if (navigator.clipboard && window.isSecureContext){
          navigator.clipboard.writeText(address).then(done).catch(function(){});
          return;
        }

        // Fallback (older browsers / non-secure contexts)
        try{
          var ta = document.createElement('textarea');
          ta.value = address;
          ta.setAttribute('readonly','');
          ta.style.position = 'absolute';
          ta.style.left = '-9999px';
          document.body.appendChild(ta);
          ta.select();
          var ok = document.execCommand('copy');
          document.body.removeChild(ta);
          if(ok) done();
        }catch(e){}
      });
    })();

    // ===== Latest posts (8) with featured images via WP REST API =====
    (function(){
      var list = document.getElementById('mcg-recent-list');
      if(!list) return;

      fetch('/wp-json/wp/v2/posts?per_page=8&_embed')
        .then(function(res){ if(!res.ok) throw new Error('HTTP ' + res.status); return res.json(); })
        .then(function(posts){
          if(!Array.isArray(posts) || posts.length===0) { list.parentElement.style.display='none'; return; }

          list.innerHTML = ''; // clear skeletons

          posts.forEach(function(p){
            var link = p.link;
            var title = (p.title && p.title.rendered) ? p.title.rendered.replace(/<[^>]+>/g,'') : 'Untitled';
            var dateStr = p.date ? new Date(p.date).toLocaleDateString(undefined, {year:'numeric', month:'short', day:'numeric'}) : '';
            var img = '';

            try {
              var media = p._embedded && p._embedded['wp:featuredmedia'] && p._embedded['wp:featuredmedia'][0];
              if (media && media.media_details && media.media_details.sizes) {
                img = (media.media_details.sizes.medium_large && media.media_details.sizes.medium_large.source_url)
                   || (media.media_details.sizes.medium && media.media_details.sizes.medium.source_url)
                   || media.source_url || '';
              } else if (media && media.source_url) { img = media.source_url; }
            } catch(e){}

            var li = document.createElement('li');
            var a = document.createElement('a');
            a.className = 'mcg-recent-item';
            a.href = link;

            var thumb = document.createElement('div');
            thumb.className = 'mcg-thumb';
            if (img) {
              var im = document.createElement('img');
              im.src = img; im.loading = 'lazy'; im.decoding = 'async'; im.alt = '';
              thumb.appendChild(im);
            }

            var meta = document.createElement('div');
            meta.className = 'mcg-meta';
            var h = document.createElement('div'); h.className = 'mcg-post-title'; h.textContent = title;
            var d = document.createElement('div'); d.className = 'mcg-date'; d.textContent = dateStr;
            meta.appendChild(h); meta.appendChild(d);

            a.appendChild(thumb); a.appendChild(meta);
            li.appendChild(a); list.appendChild(li);
          });
        })
        .catch(function(){
          list.parentElement.style.display = 'none';
        });
    })();

    // ===== Live Bitcoin Price (BTC in AUD & USD, auto-refresh) =====
    (function(){
      var audEl = document.getElementById('mcg-btc-aud');
      var usdEl = document.getElementById('mcg-btc-usd');
      var audChangeEl = document.getElementById('mcg-btc-aud-change');
      var usdChangeEl = document.getElementById('mcg-btc-usd-change');
      var updatedEl = document.getElementById('mcg-btc-updated');

      if (!audEl || !usdEl) return;

      var API_URL = 'https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd,aud&include_24hr_change=true';

      function formatCurrency(value, currency){
        if (typeof value !== 'number' || isNaN(value)) return '–';
        try{
          var locale = (currency === 'AUD') ? 'en-AU' : 'en-US';
          return new Intl.NumberFormat(locale, {
            style:'currency',
            currency:currency,
            maximumFractionDigits:0
          }).format(value);
        }catch(e){
          var prefix = (currency === 'AUD') ? 'A$' : 'US$';
          return prefix + ' ' + Math.round(value).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
        }
      }

      function setChange(el, change){
        if (!el) return;
        el.classList.remove('mcg-btc-change--up','mcg-btc-change--down');

        if (typeof change !== 'number' || isNaN(change)){
          el.textContent = '';
          return;
        }

        var text = change.toFixed(2) + '%';
        if (change > 0){
          el.textContent = '+' + text;
          el.classList.add('mcg-btc-change--up');
        } else if (change < 0){
          el.textContent = text;
          el.classList.add('mcg-btc-change--down');
        } else {
          el.textContent = text;
        }
      }

      function setUpdatedTime(){
        if (!updatedEl) return;
        var now = new Date();
        var timeStr = now.toLocaleTimeString([], {hour:'2-digit', minute:'2-digit'});
        updatedEl.textContent = 'Updated ' + timeStr;
      }

      function handleError(){
        if (audEl) audEl.textContent = '–';
        if (usdEl) usdEl.textContent = '–';
        if (audChangeEl) audChangeEl.textContent = '–';
        if (usdChangeEl) usdChangeEl.textContent = '–';
        if (updatedEl) updatedEl.textContent = 'Price temporarily unavailable.';
      }

      function fetchPrices(){
        fetch(API_URL)
          .then(function(res){
            if (!res.ok) throw new Error('HTTP ' + res.status);
            return res.json();
          })
          .then(function(data){
            if (!data || !data.bitcoin) throw new Error('No data');
            var b = data.bitcoin;

            if (typeof b.aud === 'number'){
              audEl.textContent = formatCurrency(b.aud, 'AUD');
            }
            if (typeof b.usd === 'number'){
              usdEl.textContent = formatCurrency(b.usd, 'USD');
            }

            setChange(audChangeEl, b.aud_24h_change);
            setChange(usdChangeEl, b.usd_24h_change);
            setUpdatedTime();
          })
          .catch(function(){
            handleError();
          });
      }

      fetchPrices();                 // initial
      setInterval(fetchPrices, 60000); // refresh every 60s
    })();
  </script>
</aside>
</div><div class="multiseparator"></div><div id="block-29" class="widget widget_block widget_text">
<p></p>
</div><div class="multiseparator"></div><div id="block-31" class="widget widget_block widget_text">
<p></p>
</div><div class="multiseparator"></div>
		</div>
	</div>
</div></div></div></div>

</div><p>The post <a href="https://mycryptoguide.co/how-bitcoin-transactions-work/">How Bitcoin Transactions Work | Crypto Guide</a> appeared first on <a href="https://mycryptoguide.co">My Crypto Guide — Crypto, Blockchain &amp; AI Media &amp; Education</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
