Solana
Sagitta runs on Solana mainnet-beta and settles everything in SOL: buys, cash-outs, pots, fees, bounties and the deposits accounts hold. One SOL is 109 lamports, and every amount the programs keep is a whole number of lamports.
| Value | |
|---|---|
| Cluster | mainnet-beta |
| Genesis hash | 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d |
| Public RPC | https://api.mainnet-beta.solana.comhttps://solana-rpc.publicnode.com |
| Explorer | solscan.io |
| Slots | 200 ms each; a leader holds 4 in a row |
| Fees and settlement | SOL |
Connect a wallet
Section titled “Connect a wallet”Any wallet that supports Solana works: browser wallets such as Phantom, Solflare and Backpack, a phone wallet through the Mobile Wallet Adapter on Android, or a spare wallet the site keeps in your browser (see Trading on the site). Keep a little SOL beyond your trade: each transaction pays Solana’s fee, and a ticket or a new token account holds a refundable deposit (see Rent and deposits).
The public RPC endpoints are rate-limited. They are fine for a wallet. Sagitta’s site reads them straight from your browser, the first that answers, and only for what has to be current: most of what a page shows comes from Sagitta’s API. The CLIs and programs of your own read from them too, or from any endpoint you name.
Slots and leaders
Section titled “Slots and leaders”- Slots. Solana orders its ledger in slots, 200 ms each at the network’s target (they run a little slower in practice). Sagitta’s relayed readings and the burn’s schedule are counted in slots, and the docs give their length in time at that target.
- Leaders. Each slot has one leader, the validator that produces it, and a leader holds 4 slots in a row,
about 0.8 seconds. A relayed pool reading is the pool’s price at the end of such a window, signed by Sagitta’s
price signers and listed by
GET /api/readings(see Relayed prices). - Finality. The keeper and the price signers read the chain at
finalized: a reading is only ever computed from blocks the network can no longer change. - Clock. A slot’s time (
Clock::unix_timestamp) has one-second resolution, so many slots share a second. Pool history and Chainlink markets measure in seconds, as their pools and feeds do; relayed markets measure in slots.
Accounts and rent
Section titled “Accounts and rent”Every piece of state on Solana lives in an account, and an account holds a deposit, its rent, in proportion to its size: 5,080 lamports a byte today, plus 128 bytes for each account. The deposit isn’t spent. It comes back to whoever the program pays when the account closes. A Solana upgrade is cutting the rate in steps, and Sagitta’s programs always read the current rate from the chain. Rent and deposits lists who pays for each of Sagitta’s accounts and where the deposit goes.
Tokens
Section titled “Tokens”Sagitta’s side tokens are Token-2022 tokens. A token sits in a token account, and your wallet’s associated token account for a side token holds a refundable deposit of its own, about 0.0015 SOL today. The site’s Close empty accounts button closes the empty ones and returns their deposits.
Stock tokens are Token-2022 tokens too, and listed coins may be either Token-2022 or the original SPL Token program.
For developers
Section titled “For developers”- Sagitta’s programs are written with Pinocchio and built for SBF v3. Each one’s interface is published as a Codama IDL, and the SDK carries clients generated from it.
- Transactions may be legacy, v0 or v1. The site sends v1 where the wallet signs it, else v0 with the deployment’s address lookup tables; the CLIs send v0.
- Signed readings are verified by Solana’s Ed25519 precompile, in the same transaction as their post.
Every address Sagitta uses lives in one place, packages/config, and the tables on these pages are rendered from it.
See Programs.