Solana
5 posts
Solana Chain analysis Program && Web3 API

Solana analysis: Program && Web3 API 3party JSON RPC connections (web3 provider) → netowkr object instance to getNodeURL ⇒ url parser @figment-solana/lib → Connection input url ← solana-core @solana/web3.js generate key pair Ed25519 Crypto Alg use pubKey, PrivKey SOL balance (mainnet, testnet) network provider name ⇒ token name diffirent Air Drop Account Provider to Balance ⇒ Air drop Arid Drop reques PublicKey(secretkey) ⇒ pub key generate Connection.requestAirdrop(pubkey, LAMPORTS_PER_SOL) L…

August 01, 2022
Solana
Solana Chain analysis Transactions

Transactions A client can call a program by submitting a transaction to the cluster. A single transaction can contain multiple instructions, each targeting its own program. Can contain multiple commands, each targeting its own program. When a transaction is submitted, Solana Runtime commands are processed atomically in sequence. If any part of the command fails, the entire transaction fails. Multiple commands can be bundled into a single transaction. Commands are processed atomically in order I…

July 31, 2022
Solana
Solana Chain analysis Accounts

Account state is used to store data Essential building blocks for development in Solana Each account has a unique address The maximum size of the account is 10MB The maximum size of PDA Account is 10KB. PDA Account is used to sign on behalf of the program Account Size is fixed at creation time, but can be adjusted using realloc. Account Data Storage is paid as rent. The default account holder is the system program. Account Model 3 types of accounts Data Account (Data storage purpose) Program Ac…

July 31, 2022
Solana
Solana Chain analysis Program Derived Address

Program Derived Address PDA is the home of an account designed to be controlled by a specific program. A PDA allows a program to sign a specific address programmatically without the need for a private key. Serves as the basis for cross-program calls, which allows Solana apps to configure with each other. A 32-byte string that looks like a public key, but doesn’t have a corresponding private key Deterministically derive the PDA from findProgramAddress programID, Seed(collections of bytes). bump(…

July 31, 2022
Solana
Solana Chain analysis Programs

Programs Developers can write and deploy programs on the Solana blockchain. Program (referred to as Smart Contract in Ethereum Protocol) The basic role of on-chain Horadong that supports everything such as Defi, NFT, Social Media, etc. The program handles the commands of the end user and other programs All programs are stateless, all data they interact with is stored in a separate account passed through commands The program itself is stored in an account marked as executable All programs are ow…

July 31, 2022
Solana