SDK Downloads
Official SDKs for Python, JavaScript, and Go
Python SDK
v1.0.0Official Python SDK for R3MES
Installation
pip install r3mesExample Usage
from r3mes import R3MESClient
client = R3MESClient(
rpc_url="https://api.r3mes.network",
wallet_address="remes1..."
)
# Send a chat message
response = client.chat("What is R3MES?")
print(response)
# Get user info
user_info = client.get_user_info()
print(f"Credits: {user_info['credits']}")JavaScript SDK
v1.0.0Official JavaScript/TypeScript SDK for R3MES
Installation
npm install @r3mes/sdkExample Usage
import { R3MESClient } from '@r3mes/sdk';
const client = new R3MESClient({
rpcUrl: 'https://api.r3mes.network',
walletAddress: 'remes1...'
});
// Send a chat message
const response = await client.chat('What is R3MES?');
console.log(response);
// Get user info
const userInfo = await client.getUserInfo();
console.log(`Credits: ${userInfo.credits}`);Go SDK
v1.0.0Official Go SDK for R3MES
Installation
go get github.com/r3mes/sdk-goExample Usage
package main
import (
"fmt"
"github.com/r3mes/sdk-go"
)
func main() {
client := r3mes.NewClient(
r3mes.WithRPCURL("https://api.r3mes.network"),
r3mes.WithWalletAddress("remes1..."),
)
// Send a chat message
response, err := client.Chat("What is R3MES?")
if err != nil {
panic(err)
}
fmt.Println(response)
// Get user info
userInfo, err := client.GetUserInfo()
if err != nil {
panic(err)
}
fmt.Printf("Credits: %f
", userInfo.Credits)
}