Kristoffer·Mar 11Transfer tokens between accounts on SolanaLearn how to create a smart contract instruction on Solana that deposits tokens from one account to another — This post is basically a continuation of the previous post on how to mint tokens on Solana using the rust SDK. Please check it out if you want to set up tests using the solana_program_test crate. If you want to jump straight into the code before reading the post the…Solana Network12 min read
Jorge Londoño, Ph.D·Jan 14Writing Solana dApps: Part 2 — Requesting an airdropIn part 1 of this series we saw how to create a React+Typescript front-end that connects to the Phantom wallet and retrieves our public address. In case you need, here are the links to the articles in this series: Part 1: Connecting to the Phantom Wallet Part 2: Requesting an airdrop…Solana Dapp Development3 min read
BlockSec·Apr 24Secure the Solana Ecosystem (6) — Multi-Sig20. Review Secure the Solana Ecosystem (1) — Hello Solana Secure the Solana Ecosystem (2) — Calling Between Programs Secure the Solana Ecosystem (3) — Program Upgrade Secure the Solana Ecosystem (4) — Account Validation Secure the Solana Ecosystem (5) — Multi-Sig 1. Overview In the previous post, we discussed the implementation of the…Solana Network5 min read
BlockSec·Jun 7How a Critical Bug in Solana Network was Detected and Timely PatchedIn April, our vulnerability detection system discovered an issue in the rBPF of Solana (i.e., the virtual machine where all the Solana dApps are running on: https://github.com/solana-labs/rbpf). After a careful investigation, we found that it is a security vulnerability that can lead to a wrong execution path of a contract…Solana Network5 min read
BlockSec·Mar 27Secure the Solana Ecosystem (3) — Program Upgrade0. Review Secure the Solana Ecosystem (1) — Hello Solana Secure the Solana Ecosystem (2) — Calling Between Programs 1. Overview In the previous blog, we introduced how to implement the cross-program invocation via function invoke and function invoke_signed. In this post, we will introduce another basic topic - Program Upgrade. 2. Deploy an Upgradable Program By default, all…Solana Network5 min read
兄弟鏈 brochain·Jun 5Full Stack Solana Web3 Tutorial (1)— Connect to Phantom WalletIf you are not a medium member yet and want full access to my stories, please use this link to subsribe for Medium membership. Your membership fee directly supports me and enourage me to write more quality materials in the future. Cheers! Hi! Nice to see you all again! Today…Web 35 min read
Sec3 (formerly Soteria)inCoinmonks·May 29Solana programs Part 4: Metaplex Candy Machine — how does it work?The Metaplex Candy Machine is among the most popular smart contracts used for NFT minting on Solana. Recently, it has even implemented sophisticated logics for detecting and taxing bots. How does the candy machine program work internally? What are its intended use cases and dependencies? How does it detect bots…Nft7 min read
Sec3 (formerly Soteria)inCoinmonks·Mar 22Solana programs Part 1: understanding SPL Token MintSolana token program (source code) is among the most frequently executed Solana smart contracts. Its program id: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA Most user-deployed Solana smart contracts (directly or transitively) use the token program to mint/transfer/burn tokens (i.e., SPL tokens). …Spl Token9 min read
BlockSec·Apr 10Secure the Solana Ecosystem (5) — Multi-Sig0. Review Secure the Solana Ecosystem (1) — Hello Solana Secure the Solana Ecosystem (2) — Calling Between Programs Secure the Solana Ecosystem (3) — Program Upgrade Secure the Solana Ecosystem (4) — Account Validation 1. Overview In the previous blog, we discussed the account validation, which is important to access control, in Solana…Solana Network5 min read
Sec3 (formerly Soteria)inCoinmonks·Apr 25Solana programs Part 3: understanding Metaplex Token MetadataThe metaplex-token-metadata program is the backbone of NFT on Solana. Imagine you’d like to create an NFT for your art, essentially you need to: upload your art (digitized) to a permanent storage create a token mint (i.e., a unique identifier) for your art on Solana mint one token owned by…Nft5 min read
AlexanderinCoinsBench·Feb 8Make your Solana token tradableSet it free. Time to release your own token on the Solana blockchain. A step by step guide from (minting and) market ID to liquidity. — This is a follow-up article to our first step on the Solana blockchain, in which we created our own Solana token at the command line, using tools like Rust and Cargo. Create your own Solana token at the command line Let’s create a cryptocurrency token on the Solana blockchain in a few steps using the linux command line with Rust and…coinsbench.comSolana Network4 min read
Matthew LeunginCoinmonks·Apr 10Data Analysis on Solana Blockchain dataContinue the data analysis on the transaction data I collected using the Rust program in my previous article. Let’s try to find out which pairs of accounts has the most transfer? Run the Cypher Query below: MATCH (a:Account),(b:Account) WHERE a <> b MATCH (a)-[r:TRANSFER_TO]->(b) RETURN a.key,b.key, count(r)as cnt ORDER by…3 min read
Matthew LeunginCoinmonks·Mar 13Solana Blockchain data scrapingAs the transactions on Blockchain can be accessed as public data, we can develop a scraping client to retrieve the data in each block for analysis. Here is the code in Rust API I used to access the Solana Blockchain. Create the RPC Client. RpcClient::new("https://solana-api.projectserum.com".to_string()); Get the current Epoch client.get_epoch_info().unwrap(); …Blockchain2 min read
Matthew LeunginCoinmonks·Mar 8My lesson learn in Solana Smart Contract developmentSolana is a project aimed at providing a high-performance blockchain. Its processing speed can be as fast as 200k transaction per second (tps), while in comparison with other popular blockchain such as BitCoin and Ethereum, their processing speed is just around 15 tps. Its extremely fast transaction time is due…Blockchain5 min read
Alec CheninBetter Programming·Apr 1Solana Programming PrimerSolana meets Rust (without Anchor) — I wrote this in February 2022 sort of last minute to provide additional guidance/resources during Illini Blockchain’s Solana Onboarding. It accompanied the echo project from the Jump Crypto x Solana Labs x Pyth Bootcamp I attended in January 2022. Figured I’d put this out there as a public record. This…Solana6 min read
Nazar IlamanovinBetter Programming·Apr 12Getting Started With Solana for Solidity DevelopersStart your Solana journey by comparing programming models of Ethereum vs Solana — If you’re familiar with Ethereum and Solidity, you might be meaning to dip your toes into the Solana ecosystem. Solana’s fast blockchain is promising and exciting. Plus you increase the surface area of your web3 knowledge. But if you’ve never seen a Solana program, its syntax is freaking scary and…Programming8 min read
BlockSec·Apr 6Secure the Solana Ecosystem (4) — Account Validation0. Review Secure the Solana Ecosystem (1) — Hello Solana Secure the Solana Ecosystem (2) — Calling Between Programs Secure the Solana Ecosystem (3) — Program Upgrade 1. Overview In the previous blog, we discussed how to upgrade a program. In this post, we will introduce the access control related problems, which is one…Solana Network5 min read
Sec3 (formerly Soteria)inCoinmonks·Apr 11Solana programs Part 2: understanding SPL Associated Token AccountFollowing Part 1: understanding SPL Token Mint, this article introduces the technical details of the SPL associated token program, another popular official Solana smart contract. The program provides a convenient way to manage user’s token accounts from a wallet address. Its program id: ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL The idea is to create a…Smart Contracts5 min read
Kana LabsinBlock Magnates·Mar 28The Complete Guide for Starters to Develop on Solana with SoliditySolana provides the platform to help new developers build and host applications on the Solana blockchain network. This guide will introduce you to the Solana ecosystem and the developer tooling used to develop a decentralized application on Solana. Solana's Ecosystem Solang Solidity Compiler — Smart contracts written in solidity can…Blockchain3 min read