How It Works
Estimate cost
Before uploading, use the upload cost endpoint to preview the cost:
Upload your file
When you upload a file, the payment is processed automatically. If you have a prepaid balance, it is deducted first. Otherwise, the x402 protocol handles the micropayment inline with the HTTP request.
Pricing
The cost of storing a file on Tusky is:| Component | Description |
|---|---|
| Walrus Storage Cost | The on-chain cost to store your blob on the Walrus network for the specified number of epochs. This varies based on file size and storage duration. |
Tusky passes through Walrus storage costs directly with no markup or infrastructure fee. You pay only what the Walrus network charges.
x402 Protocol
Tusky uses the x402 protocol for HTTP-native cryptocurrency payments. This means payments happen inline with your API requests — no separate payment step, no payment gateway, no accounts.How x402 Works
- The client sends a standard HTTP request.
- If payment is required, the server responds with
402 Payment Requiredand payment instructions. - The client (or SDK) automatically signs and submits the payment.
- The server processes the request after payment confirmation.
The Tusky SDK handles x402 payment flows automatically. You don’t need to interact with the protocol directly unless you are building a custom integration.
Key Benefits
No Accounts Required
Pay per request without creating billing accounts or providing personal information.
No KYC
Cryptocurrency payments eliminate the need for identity verification.
Instant Settlement
Payments settle on-chain in seconds, not days.
Transparent Pricing
Every payment is recorded on-chain with a verifiable transaction hash.
Supported Tokens
| Token | Description |
|---|---|
| SUI | The native token of the Sui network. Used for gas fees on Sui transactions. |
| WAL | The Walrus utility token. Can be used for storage payments where accepted. |