{"uid":"cap_QwZgsAI5-aOIPYhhqQzqt","slug":"solana-rent-exempt-lamport-calculator-cbcbe3c9","name":"Solana Rent-Exempt Lamport Calculator","description":"Lamports needed to make a Solana account rent-exempt — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/solana-rent-exempt?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"bytes":{"type":"integer","minimum":0}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"solana-rent-exempt","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.002,"receipt_id":"g402-<16hex>"},"generated_at":"<iso8601>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_F2uA9IC0Yt5fINxyva4PQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the minimum number of lamports required to make a Solana account rent-exempt given its data size in bytes","exampleAgentPrompt":"How many lamports do I need to deposit to make a Solana account with 165 bytes of data rent-exempt?","exampleUseCases":[{"title":"Initializing a new token account","prompt":"I'm creating a new SPL token account on Solana which has 165 bytes of data — how many lamports do I need to fund it with so it's rent-exempt?"},{"title":"Deploying a small on-chain program buffer","prompt":"Before I deploy my Solana program, I need to allocate a buffer account of 512 bytes. What's the minimum lamport balance I need to put in so it won't get swept by rent?"},{"title":"Setting up a custom PDA with 1024 bytes","prompt":"I'm writing a Solana smart contract that uses a PDA with 1024 bytes of storage. Can you tell me how many lamports I need to store in it to keep it rent-exempt?"}],"resultDescription":"Returns a JSON object with ok: true, the type 'solana-rent-exempt', the calculated lamport amount needed for rent exemption for the given byte size, plus a payment receipt containing a transaction hash, USD amount charged, and a receipt ID.","failureModes":["Invalid or negative bytes value returns a validation error","Missing params object or bytes field may return a 400 bad request","Payment failure via x402 protocol returns a 402 response","Network or provider unavailability returns a 503 or timeout"],"whenToPreferThis":"Use this endpoint when you need a reliable, on-demand calculation of the Solana rent-exempt minimum for a specific account size without running a Solana node yourself. Ideal for agents automating account creation, funding workflows, or smart contract deployment pipelines where knowing the exact lamport threshold is required before issuing a transfer.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T05:13:06.754Z","isFirstParty":false,"canonicalSlug":"solana-rent-exempt-lamport-calculator-cbcbe3c9"}