Gas fee

Storing data on-chain in blockchain applications is a nuanced topic, especially with concerns about scalability, costs, and efficiency. Solana, known for its high throughput and low transaction costs, presents an interesting case for on-chain data storage. In the context of an application like SolChat, which aims to leverage the Solana blockchain for messaging by embedding encrypted text within transactions, understanding the technical and economic implications is crucial.

Solana's Transaction Model and Gas Fees

Solana achieves its scalability through a unique combination of proof-of-history (PoH) and proof-of-stake (PoS) consensus mechanisms, which allows it to process tens of thousands of transactions per second (TPS). This high throughput significantly reduces the cost per transaction, or "gas fee," compared to other blockchains like Ethereum.

Gas fees on Solana are measured in "lamports," which are the smallest unit of the SOL cryptocurrency, where 1 SOL = 1,000,000,000 lamports. The cost of a transaction on Solana can vary based on the network's congestion and the complexity of the transaction, but it remains significantly low, typically fractions of a cent.

Storing Data On-Chain with Solana Transactions

In Solana, every transaction can include a "memo" field, which allows for the inclusion of arbitrary data. This feature can be utilized by applications like SolChat to embed encrypted messages directly within blockchain transactions. The memo field has a byte limit, constraining the amount of text that can be sent in a single transaction. Despite this limitation, it provides a decentralized and secure way to transmit messages.

  • Each user must register on our app, incurring a cost of 0.04 SOL.

  • Users can add more than 150 wallets as friends, with minimal gas fees involved.

  • To initiate a chat with another user, each user must pay a 0.02 SOL gas fee for messages.

  • Following messages fee is 0.000025SOL

  • Video and Audio calls are free

  • Images are hosted on IPFS, which is free for users.

Last updated