<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: VeerSwap</title>
    <description>The latest articles on DEV Community by VeerSwap (@naonao7k7kcloud).</description>
    <link>https://dev.to/naonao7k7kcloud</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4263724%2Ffa0f7492-e6bc-4e37-9188-0c25de683b04.png</url>
      <title>DEV Community: VeerSwap</title>
      <link>https://dev.to/naonao7k7kcloud</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/naonao7k7kcloud"/>
    <language>en</language>
    <item>
      <title>How Non-Custodial Cross-Chain Swaps Work Without Wallet Connection: Address &amp; Memo Validation Architecture</title>
      <dc:creator>VeerSwap</dc:creator>
      <pubDate>Wed, 25 Nov 2026 03:12:42 +0000</pubDate>
      <link>https://dev.to/naonao7k7kcloud/how-non-custodial-cross-chain-swaps-work-without-wallet-connection-address-memo-validation-2l7j</link>
      <guid>https://dev.to/naonao7k7kcloud/how-non-custodial-cross-chain-swaps-work-without-wallet-connection-address-memo-validation-2l7j</guid>
      <description>&lt;p&gt;Connecting a browser extension wallet is not strictly required to execute a cross-chain asset transfer. In fact, many developers, treasury operators, and exchange users prefer deposit-address-based flows that keep signing keys completely isolated from web frontends.&lt;/p&gt;

&lt;p&gt;In this engineering breakdown, we examine how non-custodial cross-chain and same-chain swaps operate using order-specific deposit addresses, why two-stage quoting matters, and how deterministic address and memo/tag validation prevents irreversible cross-network errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture of Deposit-Address Non-Custodial Swaps
&lt;/h2&gt;

&lt;p&gt;A browser-wallet swap typically injects a signer into the page so the application can construct and prompt for an on-chain transaction directly. By contrast, a deposit-address swap architecture decouples quote discovery from transaction signing:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Order Initialization &amp;amp; Two-Stage Quoting&lt;/strong&gt;: In the initial lookup step, the swap interface displays a live reference estimate for the requested pair and amount across supported chains in the &lt;a href="https://veerswap.com/exchange" rel="noopener noreferrer"&gt;VeerSwap exchange directory&lt;/a&gt;. That Step 1 estimate is a reference rate and is not locked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Address-Bound Quote Refresh&lt;/strong&gt;: Once the user enters the destination receiving address—and an optional refund address preference—the backend computes a fresh, address-bound quote. VeerSwap's own service fee is up to 0.25% and is already factored into the displayed estimated output (network gas fees or withdrawal fees charged by the user's sending wallet or exchange remain separate).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Isolated Deposit Execution&lt;/strong&gt;: Instead of requesting wallet permissions, account registration, or KYC, the order generates a dedicated deposit address and payment countdown. Standard EVM and Solana orders typically use a 15-minute payment window, whereas Proof-of-Work (PoW) networks such as Bitcoin (BTC) and Litecoin (LTC) request an extended 60-minute payment window, always governed by the live countdown shown on the order payment page.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For example, when users &lt;a href="https://veerswap.com/exchange/btc-to-eth" rel="noopener noreferrer"&gt;swap BTC to ETH without connecting a wallet&lt;/a&gt;, they can send BTC from a hardware wallet, mobile wallet, or custody interface to the order deposit address and receive ETH directly at the specified Ethereum destination address.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Pre-Order Address &amp;amp; Memo Validation Must Run Deterministic Checks
&lt;/h2&gt;

&lt;p&gt;Because no browser wallet is connected, the frontend cannot rely on &lt;code&gt;eth_requestAccounts&lt;/code&gt; or wallet-injected chain IDs to infer the user's destination network. Common failure modes in deposit-address swaps include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Wrong-Network EVM Confusion&lt;/strong&gt;: Ethereum, Arbitrum, Optimism, Base, Polygon, and BSC all share &lt;code&gt;0x&lt;/code&gt;-prefixed hex addresses, making regex-only checks insufficient to verify network intent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Missing or Malformed Memo / Destination Tag&lt;/strong&gt;: Networks such as XRP (Destination Tag), XLM (Memo), TON (Comment), Cosmos/Osmosis (Bech32 + Memo), and EOS require secondary routing identifiers when sending to shared custody or exchange deposit endpoints.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Case-Sensitivity and Checksum Drift&lt;/strong&gt;: Base58Check (Bitcoin legacy, Tron) and Bech32/Bech32m (Bitcoin SegWit/Taproot) carry embedded checksums, whereas EIP-55 mixed-case hex addresses encode checksum bits in letter casing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To enforce strict pre-submission safety in Go services, we maintain an open-source MIT-licensed validation library at &lt;code&gt;github.com/naonao7k7k-cloud/multichain-memo-address-validator&lt;/code&gt;, indexed on Go's package registry at &lt;a href="https://pkg.go.dev/github.com/naonao7k7k-cloud/multichain-memo-address-validator" rel="noopener noreferrer"&gt;pkg.go.dev/github.com/naonao7k7k-cloud/multichain-memo-address-validator&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Go Validation Example: Address &amp;amp; Memo Guardrails
&lt;/h2&gt;

&lt;p&gt;Below is a minimal Go integration pattern using &lt;code&gt;github.com/naonao7k7k-cloud/multichain-memo-address-validator&lt;/code&gt; to validate both a destination address and its network-specific memo/tag before refreshing an address-bound swap quote:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;package&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"fmt"&lt;/span&gt;
    &lt;span class="s2"&gt;"log"&lt;/span&gt;

    &lt;span class="n"&gt;validator&lt;/span&gt; &lt;span class="s2"&gt;"github.com/naonao7k7k-cloud/multichain-memo-address-validator"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;SwapDestination&lt;/span&gt; &lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;Network&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;
    &lt;span class="nc"&gt;Address&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;
    &lt;span class="nc"&gt;Memo&lt;/span&gt;    &lt;span class="kt"&gt;string&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="nc"&gt;ValidateBeforeQuote&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dest&lt;/span&gt; &lt;span class="nc"&gt;SwapDestination&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="kt"&gt;error&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;validator&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Validate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Network&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Address&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Memo&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Valid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Errorf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"invalid destination for %s: %s"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Network&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Reason&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;MemoRequired&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Memo&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Errorf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"network %s requires a memo/tag for exchange deposit safety"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Network&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;nil&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;order&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nc"&gt;SwapDestination&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;Network&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ETH"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nc"&gt;Address&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nc"&gt;ValidateBeforeQuote&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="kc"&gt;nil&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Fatalf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"pre-quote validation blocked: %v"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Destination validated; safe to request fresh address-bound quote."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Running deterministic validation before Step 2 quote generation ensures invalid addresses or missing tags are caught before any deposit address is generated. For operational details on wallet-free routing, see the &lt;a href="https://veerswap.com/guides/swap-without-wallet-connection" rel="noopener noreferrer"&gt;cross-chain swap without wallet connection guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  6-Item Pre-Payment Engineering Checklist
&lt;/h2&gt;

&lt;p&gt;Before broadcasting funds to an order deposit address, verify all six invariants:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Exact Send Network Match&lt;/strong&gt;: Confirm the asset and network selected in your sending wallet or exchange (e.g., ERC-20 vs. TRC-20 vs. Base) match the order's send network.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Receiving Address Format &amp;amp; Ownership&lt;/strong&gt;: Confirm the receiving address belongs to a wallet or platform you control on the exact target network.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memo / Tag Completeness&lt;/strong&gt;: If sending to or receiving on a memo-based network (XRP, XLM, TON, Cosmos), confirm the required tag or memo is populated verbatim.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fresh Step-2 Quote Review&lt;/strong&gt;: Verify the refreshed address-bound quote shown after entering your receiving address rather than relying on the Step 1 reference estimate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Payment Window Budget&lt;/strong&gt;: Ensure your sending wallet or exchange withdrawal can broadcast within the live order countdown (typically 15 minutes for EVM/Solana orders, 60 minutes for PoW networks like BTC/LTC).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;External Withdrawal Fees Accounted For&lt;/strong&gt;: Account for sending-wallet gas or exchange withdrawal fees separately from VeerSwap's service fee (up to 0.25%, already reflected in the order estimate).&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions (FAQ)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Is the Step 1 estimate locked before I enter a receiving address?
&lt;/h3&gt;

&lt;p&gt;No. Step 1 provides a live reference estimate based on current market conditions. Once you input your receiving address and refund preference, the system calculates a refreshed, address-bound quote for the order.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Do I need to connect MetaMask, Phantom, or register an account?
&lt;/h3&gt;

&lt;p&gt;No. Non-custodial deposit-address swaps do not require browser wallet connection, account creation, or KYC verification. You send funds directly from whichever wallet or platform holds your source asset to the order's deposit address.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Why do BTC and LTC orders use a longer payment window than EVM or Solana orders?
&lt;/h3&gt;

&lt;p&gt;Proof-of-Work networks such as Bitcoin and Litecoin have slower block cadence and exchange withdrawal batching behavior, so orders request an extended 60-minute payment window compared with the standard 15-minute window used for regular EVM and Solana orders (subject to the live countdown on the payment page).&lt;/p&gt;

</description>
      <category>web3</category>
      <category>go</category>
      <category>security</category>
      <category>cryptocurrency</category>
    </item>
  </channel>
</rss>
