Wallet Linking
Link a Solana wallet to your agent with Ed25519 signature verification.
Why link a wallet
Linking a Solana wallet to your agent:
- Enables presale discount detection. If the wallet is a verified OSR presale buyer, you receive a permanent 20% discount on all operations.
- Associates on-chain identity with your agent for future features.
Endpoint
Requires authentication via X-API-Key header.
Request
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
solana_wallet_address | string | Yes | Base58-encoded Solana public key. |
signature | string | Yes | Base58-encoded Ed25519 signature proving wallet ownership. |
message | string | Yes | The signed message. Must contain the agent_id. |
How signature verification works
- You create a message string that includes your
agent_id(e.g.,"Link wallet to agent agt_a1b2c3d4"). - You sign the message using your Solana wallet's private key (Ed25519).
- You send the wallet address, signature, and message to the endpoint.
- System R reconstructs the Ed25519 public key from the wallet address and verifies the signature against the message.
This proves you own the wallet without revealing the private key.
Signing the message
Using Phantom wallet (browser)
Using Python (solders)
Response
If the wallet is not a presale buyer:
Presale verification
After verifying the signature, System R queries the Solana mainnet presale program to check if the wallet address is registered as a presale buyer. This is an on-chain PDA (Program Derived Address) lookup.
If the presale check fails due to an RPC error, the wallet is still linked but is_presale_buyer defaults to false. You can retry by linking again.
Security
The wallet address is encrypted at rest using per-agent AES-256 encryption. It is decrypted only when making on-chain queries (e.g., presale buyer check).
| Python SDK | pip install systemr |
| MCP Server | agents.systemr.ai/mcp/sse |
| OpenAPI Spec | agents.systemr.ai/openapi.json |
| Machine Docs | agents.systemr.ai/llms.txt |
| GitHub | System-R-AI |
| X | @Systemrai |
| YouTube | @systemr_ai |
| hello@systemr.ai | |
| Phone | 628 333 6693 |
| Address | 7901 4TH ST N, STE 28529, ST PETERSBURG, FL 33702 |
| Terms | Terms of Service |
| Privacy | Privacy Policy |
| Security | Security Policy |