How to Develop Dapp with Solana

Posted By : Vishu

Jun 23, 2022

 

Develop Dapp with Solana

 

The app interacts with the Solana cluster by sending a transaction that contains one or more statements. Also, Solana runtime previously passed these instructions to a program provided by the app developer. For example, the statement can instruct a program to transfer a report from one account to another or create an interactive contract. It manages how the transfer of a report can be. Also, the statements are executed sequentially and automatically on a transaction basis. Thus if there are an invalid statement all changes to the account in the transaction will be discarded.

 

Transaction format

 

The transaction contains a compact array of signatures followed by a message. Each element of the signature array is the digital signature of the specified message. The Solana runtime checks if the number of signatures matches the number of the first 8 bits of the message header. Also, make sure that the signing of each signature with the private key corresponds to the public key in the same index of the message's account address array. The binary format for each digital signature is ed25519, which consumes 64 bytes.

 

Message format

 

The message contains a compact array of headers, account addresses, current block hashes, and a variety of compact instructions. Header format, Account address format, Block hash format Saving state between transactions: If the program needs to save state between transactions, save it in your account. Accounts are similar to files on operating systems such as Linux, in which they can contain data that lasts beyond the program's life. Unlike files, the accounts have metadata for the file life. The representation of lifetime is by a set of partial native tokens called reports. And, storing of your account is in validator storage, and you pay "rent" to stay there. Also, the Solana client uses addresses to search for accounts like Linux users use a way to search for files. The address is a 256-bit public key.

 

Created by

 

To create an account, the client creates vital pair and uses the SystemProgram: CreateAccount directive to register the public key in a pre-allocated fixed amount of storage. The current maximum size of account data is 10 megabytes. The account address can be any 256-bit value, and there is a mechanism for advanced users to create a derived address (SystemProgram: CreateAccountWithSeed, Pubkey: CreateProgramAddress).

 

We are a Blockchain Development Company based in Gurugram, and if you are willing to develop a project on Solana. Feel free to connect with our expert teams.

Leave a

Comment

Name is required

Invalid Name

Comment is required

Recaptcha is required.

blog-detail

November 21, 2024 at 11:35 am

Your comment is awaiting moderation.

By using this site, you allow our use of cookies. For more information on the cookies we use and how to delete or block them, please read our cookie notice.

Chat with Us
Telegram Button
Youtube Button

Contact Us

Oodles | Blockchain Development Company

Name is required

Please enter a valid Name

Please enter a valid Phone Number

Please remove URL from text