Sign in

In the Ethereum world, we only need an Eth address, you can use this address to receive ETH and all kinds of ERC-20 tokens.

However, in the Solana system, SPL token is basically an deposit account which is managed by the Token on-chain program(like smart contract). In wallet, you can…


If you have some programming experience with other chains like ETH and EOS, etc. You may get confused when things behave not as you expected when you start programming in Solana. …


如果你有其他链的开发经验,比如ETH、EOS等。那么在使用Solana的SDK来进行开发的时候,很可能 会被一些与通常行为不一致的表现带到陷阱里面去。这里列举了一些注意点。

Account长度固定

Account是Solana中的存储对象,类似EOS里面的内存。但是Solana中的Account除了在初始化的时候 可以指定长度外,其长度就不可变了。如果对Solana的S …


前面Solana智能合约开发:HelloWorld 合约 我们的合约写好了,也可以正常编译了,那么怎么确定我们的合约能正常工作呢?

在前面的文章Solana开发教程:搭建开发环境 我们介绍了solana1.4.x提供了一个localnet.sh的脚步可以搭建一个本地的solana节点,然后在上面发布合约。 但是从solana1.5.0以后,官方又 …


要进行Solana的合约开发,这里假设你已经按照前面文章的介绍,搭建好了Solana 1.4.x的 开发环境(安装好了rust和solana1.4.x命令行工具)。然后我们来看一个HelloWorld的合约 以及DApp的实现。在官方的Demo中也有个HelloWorld的例子,但是一来这个例子不是基于 新的Solana开发工具链,通过npm命令 …


There is a lot of terms and explanations in Solana developer docs, but we do not need to know them all to start development. Solana smart contract is also called on-chain program.


在Solana的开发文档中 有列出一系列的基本概念,但是对于合约开发,我们只要知道其中的一部分就可以了。Solana的合约程序也被 叫做“on-chain program” 链上程序。和EOS使用WebAssembly runtime不同的是,EOS的合约是被编译成 WebAssembly字节码,然后EOS节点运行一个WebAxxembly的虚拟 …


Before we start

Before diving deep into this tutorial, please make sure that you have your environment set up and tool suite installed following the steps in this tutorial. If you have already done it, then fix your seat belt, and we are ready to go 🚗

Connect to Devnet

If you do not have your…


Solana smart contact is also called on-chain program, its executable is an BPF file of ELF format, BPF is compiled from C, Rust or other programming languages. For now, Solana has SDK support for C and Rust(which uses LLVM as compiler).

The BPF file(usually with .so as extension) needs to…


准备工作

在前面的文章中,我们已经安装好了solana的命令行工具,其中包括了秘钥生成以及编译工具等。有了 这些工具后,我们就可以开始进行相应的开发了

连接开发网

如果你还没有搭建自己的节点,为了省去节点的相关操作,可以先使用Solana提供的开发网进行开发, 因为开发网的配置和主网基本是一致的。

通过设置:

ubuntu@VM-0-12-ubuntu:~$ solana co …

Solong

solong wallet

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store