<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Transaction on Website of SauceWu</title><link>https://saucewu.github.io/tags/transaction/</link><description>Recent content in Transaction on Website of SauceWu</description><generator>Hugo -- gohugo.io</generator><language>zh</language><lastBuildDate>Fri, 21 Feb 2025 15:00:00 +0900</lastBuildDate><atom:link href="https://saucewu.github.io/tags/transaction/index.xml" rel="self" type="application/rss+xml"/><item><title>Solana 交易手续费与常见坑</title><link>https://saucewu.github.io/posts/solana-%E4%BA%A4%E6%98%93%E6%89%8B%E7%BB%AD%E8%B4%B9%E4%B8%8E%E5%B8%B8%E8%A7%81%E5%9D%91/</link><pubDate>Fri, 21 Feb 2025 15:00:00 +0900</pubDate><guid>https://saucewu.github.io/posts/solana-%E4%BA%A4%E6%98%93%E6%89%8B%E7%BB%AD%E8%B4%B9%E4%B8%8E%E5%B8%B8%E8%A7%81%E5%9D%91/</guid><description>&lt;h1 id="solana-交易手续费与常见坑"&gt;Solana 交易手续费与常见坑&lt;/h1&gt;
&lt;p&gt;Solana 的手续费设计和 EVM 差别很大，从 EVM 过来的开发者很容易踩坑。这篇把几个最常见的问题整理一下。&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="手续费结构"&gt;手续费结构&lt;/h2&gt;
&lt;p&gt;Solana 的交易费用分两部分：&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;总费用 = 基础费用（Base Fee）+ 优先费用（Priority Fee，可选）
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id="基础费用"&gt;基础费用&lt;/h3&gt;
&lt;p&gt;每个&lt;strong&gt;签名&lt;/strong&gt;收 &lt;code&gt;5000 lamports&lt;/code&gt;（0.000005 SOL）。一笔交易有几个签名就收几倍。&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;基础费用 = 签名数 × 5000 lamports
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;普通转账只有 1 个签名，费用就是 5000 lamports。多签或者复杂交易有多个签名，费用叠加。&lt;/p&gt;</description></item></channel></rss>