RPSLS LogoRPSLS
RPSLS: …Play Now

Developer Docs

Build on RPSLS! Access comprehensive technical documentation, API references, smart contract interfaces, and integration guides for developers.

⚡

Coming Soon

We're building comprehensive developer documentation with API references, smart contract guides, and integration tutorials. Launching hopefully in Q3 2026!

The information below is a work in progress and will be updated as we progress.

Documentation Sections

🔗

API Reference

REST API endpoints
WebSocket connections
Authentication methods
Rate limiting
📜

Smart Contracts

Contract ABIs
Function documentation
Event specifications
Gas optimization
🛠️

SDKs & Libraries

JavaScript SDK
Python library
React components
Unity integration
📚

Tutorials

Getting started guide
Integration examples
Best practices
Troubleshooting

API Preview

Game API Endpoints

GET /api/gamesList active games
POST /api/gamesCreate new game
GET /api/games/[id]Get game details
POST /api/games/[id]/moveSubmit move

User API Endpoints

GET /api/users/profileGet user profile
GET /api/users/statsGet user statistics
GET /api/users/nftsGet user NFTs
GET /api/users/balanceGet token balance

Smart Contract Information

$RPSLS Token Contract

Network:Base
Address:0x5b9C...1ea7
Standard:ERC-20
Total Supply:1B tokens

Game Contract

Network:Base
Address:Coming Soon
Standard:Custom
Features:Game Logic

Development Tools

🧪

Testnet

  • • Base Sepolia testnet
  • • Free test tokens
  • • Full API access
  • • Sandbox environment
📊

Analytics

  • • Usage metrics
  • • Performance monitoring
  • • Error tracking
  • • Real-time dashboards
🔧

Debugging

  • • API testing tools
  • • Request logging
  • • Error diagnostics
  • • Support channels

Integration Examples

JavaScript SDK Example

import { RPSLSClient } from '@rpsls/sdk';

const client = new RPSLSClient({
  apiKey: 'your-api-key',
  network: 'base'
});

// Create a new game
const game = await client.games.create({
  mode: 'versus',
  wager: 100
});

// Submit a move
await client.games.submitMove(game.id, 'rock');

// Get game result
const result = await client.games.getResult(game.id);

React Component Example

import { RPSLSGame } from '@rpsls/react-components';

function GamePage() {
  return (
    <RPSLSGame
      mode="versus"
      onGameEnd={(result) => {
        console.log('Game ended:', result);
      }}
      onError={(error) => {
        console.error('Game error:', error);
      }}
    />
  );
}

Developer Resources

Start Building

Join our developer community and start building with RPSLS!