LogoAnchor 中文文档

示例程序

Anchor 示例程序参考

基础

示例描述
checking-accounts使用 Anchor 的账户检查示例
close-account使用 Anchor 的关闭账户示例
counter使用 Anchor 的计数器程序
create-account使用 Anchor 创建账户
cross-program-invocation使用 Anchor 的跨程序调用示例
favorites使用 Anchor 存储用户“收藏”
hello-solana使用 Anchor 的基本“Hello, Solana!”程序
pda-rent-payer使用 Anchor 的 PDA 租金支付者示例
processing-instructions使用 Anchor 处理指令
program-derived-addresses使用 Anchor 的程序衍生地址
realloc使用 Anchor 重新分配账户数据
rent使用 Anchor 计算账户的 SOL 租金
transfer-sol使用 Anchor 转账 SOL 代币

代币

示例描述
create-token使用 Anchor 创建 SPL 代币
escrow使用 Anchor 的托管程序
nft-minter使用 Anchor 铸造 NFT
nft-operations使用 Anchor 进行 NFT 操作
pda-mint-authority使用 PDA 作为铸币权限
spl-token-minter使用 Anchor 铸造 SPL 代币
token-fundraiser使用 Anchor 的代币募资程序
token-swap使用 Anchor 交换代币
transfer-tokens使用 Anchor 转账 SPL 代币

代币扩展

示例描述
basics使用 Anchor 的 Token 2022 基础
cpi-guard使用 Anchor 的 CPI 防护示例
default-account-state使用 Anchor 的默认账户状态设置
group使用 Anchor 的代币分组示例
immutable-owner使用 Anchor 的不可变所有者设置
interest-bearing使用 Anchor 的计息代币
memo-transfer使用 Anchor 的备忘录转账
metadata使用 Anchor 的代币元数据
mint-close-authority使用 Anchor 的铸币关闭权限
multiple-extensions使用 Anchor 的多重扩展示例
nft-meta-data-pointer使用 Anchor 的 NFT 元数据指针
non-transferable使用 Anchor 的不可转让代币
permanent-delegate使用 Anchor 的永久委托人设置
transfer-fee使用 Anchor 的转账费用示例
transfer-hook使用 Anchor 的转账钩子示例

On this page

在GitHub上编辑