API Overview
RP1 provides multiple APIs for interacting with the network.
Endpoints
Mainnet
| API | Endpoint |
|---|---|
| REST | https://api.rp.one |
| gRPC | grpc.rp.one:9090 |
| RPC | https://rpc.rp.one |
| WebSocket | wss://rpc.rp.one/websocket |
| EVM RPC | https://evm.rp.one |
Testnet
| API | Endpoint |
|---|---|
| REST | https://api.testnet.rp.one |
| gRPC | grpc.testnet.rp.one:9090 |
| RPC | https://rpc.testnet.rp.one |
| WebSocket | wss://rpc.testnet.rp.one/websocket |
| EVM RPC | https://evm.testnet.rp.one |
API Types
REST API
Standard HTTP REST endpoints for querying state and submitting transactions.
# Get account balance
curl https://api.rp.one/cosmos/bank/v1beta1/balances/rp1address...
# Get transaction
curl https://api.rp.one/cosmos/tx/v1beta1/txs/TXHASH
gRPC
High-performance binary protocol for service-to-service communication.
# Using grpcurl
grpcurl -plaintext grpc.rp.one:9090 cosmos.bank.v1beta1.Query/Balance
Tendermint RPC
Low-level consensus and network queries.
# Get status
curl https://rpc.rp.one/status
# Get block
curl https://rpc.rp.one/block?height=1000
WebSocket
Real-time event subscriptions.
const ws = new WebSocket('wss://rpc.rp.one/websocket');
ws.send(JSON.stringify({
jsonrpc: '2.0',
method: 'subscribe',
params: ["tm.event='Tx'"],
id: 1,
}));
Authentication
Public endpoints require no authentication. Rate limits apply:
| Endpoint | Rate Limit |
|---|---|
| REST | 100 req/min |
| gRPC | 1000 req/min |
| RPC | 100 req/min |
| WebSocket | 10 connections |
For higher limits, run your own node or contact team for API access.
Response Format
Success Response
{
"height": "12345",
"result": {
// ... response data
}
}
Error Response
{
"code": 5,
"message": "account not found",
"details": []
}
Common Queries
Account Balance
GET /cosmos/bank/v1beta1/balances/{address}
Transaction Status
GET /cosmos/tx/v1beta1/txs/{hash}
Block Info
GET /cosmos/base/tendermint/v1beta1/blocks/{height}
Module Parameters
GET /rp1/privacy/v1/params
GET /rp1/lending/v1/params
GET /rp1/oracle/v1/params
Module-Specific APIs
| Module | Base Path |
|---|---|
| Privacy | /rp1/privacy/v1/ |
| Lending | /rp1/lending/v1/ |
| Oracle | /rp1/oracle/v1/ |
| UTA | /rp1/uta/v1/ |
| InstaWrap | /rp1/instawrap/v1/ |
| Fee Burn | /rp1/feeburn/v1/ |