Solana SOL链发币教程--solana链上Metaplex 代币元数据mpltoken-metadata交互程序部署【pdf+视频SOL发币教程下载)

本文介绍了如何在Solana链上为同质化或非同质化代币添加元数据,如名称、描述和logo,利用Mint账户地址生成PDA。提供了使用TypeScript和Rust进行程序部署、测试以及多模式组合合约的详细步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

将附加数据附加到 Solana 上的同质或非同质代币的程序。它使用从 Mint 帐户地址派生的程序派生地址(PDA)来实现此目的。附加元数据包括SPL代币或者NFT的名称,简称,描述信息,logo等元素。
下面的包可用于与令牌元数据程序交互。安装必须的依赖包,支持使用TypeScript和Rust语言。

TypeScript

npm install @metaplex-foundation/mpl-token-metadata

RUST

cargo add mpl-token-metadata

程序包部署流程

pnpm validator


From the root directory of the repository.
Install the required packages:

pnpm install

Build the program:

pnpm programs:build

This will create the program binary at <RooT>/programs/.bin
软件部署完成后运行测试
Token Metadata includes two sets of tests: BPF and TypeScript.
BPF
From the root directory of the repository:

pnpm programs:test

TypeScript
From the root directory of the repository.

pnpm validator

This will start a local validator using Amman.
After starting the validator, go to the folder <RooT>/clients/js and run:

pnpm install

This will install the required packages for the tests. Then, run:

pnpm build && pnpm test

pdf+视频Solana链SOL发币教程及多模式组合合约源代码下载:
、工具使用)教程下载:Solana链SOL发币(合约部署、开源、锁仓、LP、参数配置、开发、故障处理、

多模式(燃烧、回流指定营销地址、分红本币及任意币种,邀请推广八代收益,LP加池分红、交易分红、复利
分红、NFT分红、自动筑池、动态手续费、定时开盘、回购)组合合约源代码下载:

pdf+视频Solana链SOL发币教程及多模式组合合约源代码下载地址:

本人仅供参考,不构成任何投资建议!!!

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

白马区块Crypto100

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值