Documentation Index
Fetch the complete documentation index at: https://docs.skale.space/llms.txt
Use this file to discover all available pages before exploring further.
Overview
These prompts help you get the most out of AI assistants (Claude, GPT, Cursor, etc.) when building on SKALE. Copy them into your AI tool of choice along with context from the SKALE documentation.
Privacy & Encrypted Transactions
Encrypt a Transaction
I'm building on SKALE Base. Help me send an encrypted ERC20 transfer using the
@skalenetwork/bite TypeScript SDK. The transaction should hide the recipient and
amount during mempool and consensus. I need the full implementation with ethers.js.
Build a Confidential Auction
Build a Solidity smart contract for a sealed-bid auction on SKALE using Conditional
Transactions (CTX). The contract should:
1. Accept encrypted bids from participants
2. After the deadline, use submitCTX to decrypt all bids
3. Determine the winner without revealing losing bids
4. Use the IBiteSupplicant interface for the onDecrypt callback
Solidity version >= 0.8.27, EVM version istanbul.
Create a Confidential Voting System
Create a confidential voting dApp on SKALE that:
1. Encrypts votes using bite.encryptMessage()
2. Stores encrypted votes onchain
3. Uses Conditional Transactions to tally votes after the voting period ends
4. Prevents bribery by keeping votes encrypted until tally
5. Shows results only after the admin triggers tally
Use React for the frontend and @skalenetwork/bite for encryption.
Smart Contracts & Deployment
Deploy to SKALE
I want to deploy a smart contract to SKALE Base. Create a deployment script using
Foundry that:
1. Compiles with EVM version Shanghai or lower
2. Deploys to SKALE Base Mainnet
3. Verifies on the SKALE Block Explorer
Include the foundry.toml configuration for SKALE.
Create an ERC20 Token
Create a gasless ERC20 token on SKALE with:
1. Standard OpenZeppelin ERC20 implementation
2. 1 billion initial supply
3. 18 decimals
4. Deploy script for SKALE Base
Since SKALE has zero gas fees, users don't need ETH for gas.
Bridging & Cross-Chain
Bridge ERC20 from Ethereum to SKALE
Show me how to bridge ERC20 tokens from Ethereum to SKALE using the IMA bridge.
Include:
1. Approve the token for bridging
2. Call the bridge function
3. Wait for confirmation
4. Verify the token on the SKALE side
Use ethers.js v6 and the IMA SDK.
x402 Payments
Set Up x402 Payment Middleware
Build an Express.js server that accepts x402 payments using @skalenetwork/mpp-sdk.
The server should:
1. Have a public endpoint (no payment required)
2. Have a premium endpoint protected by x402
3. Accept USDC payments on SKALE Base
4. Use the Kobaru facilitator for payment processing
Include both server and client code.
Become an x402 Seller
I want to sell API access using x402 payments on SKALE. Create a complete setup that:
1. Prices endpoints in USDC
2. Uses a facilitator for payment routing
3. Handles payment verification server-side
4. Returns protected content after payment
AI Agents
Build an Onchain Agent
Build an AI agent that can:
1. Discover services on SKALE using x402
2. Make payments for API access
3. Execute encrypted transactions for privacy
4. Interact with smart contracts on SKALE Base
Use the @skalenetwork/bite SDK for encryption and viem for blockchain interaction.
Tips for Better Results
- Specify the chain — Always mention SKALE Base or your target chain
- Include SDK version — Mention
@skalenetwork/bite or @skalenetwork/mpp-sdk
- Compiler settings — For Solidity, specify version
>= 0.8.27 and EVM version istanbul (for CTX) or Shanghai (for standard contracts)
- Zero gas fees — Remind the AI that SKALE chains have zero gas fees (users need sFUEL, not ETH)
- Link docs — Share relevant SKALE docs URLs for context