{
"jsonrpc": "2.0",
"id": 1,
"result": {
"private_key": "string", // Your wallet's private key (keep this secure!)
"public_key": "string", // Your wallet's public key
"api_key": "string" // Your API key for future requests
}
}
Examples
import requests
def create_wallet():
# Create a new wallet and get API key
response = requests.post(
"https://api.soltool.pro/rpc",
json={
"jsonrpc": "2.0",
"id": 1,
"method": "soltool_createWallet",
"params": []
}
)
# Parse response
result = response.json()
if "result" in result:
data = result["result"]
print("Wallet created successfully!")
print(f"Public Key: {data['public_key']}")
print(f"Private Key: {data['private_key']}")
print(f"API Key: {data['api_key']}")
# IMPORTANT: Securely save these keys
# They cannot be recovered if lost
return data
else:
print("Error:", result.get("error", {}).get("message", "Unknown error"))
return None
# Create wallet and get API key
wallet_data = create_wallet()
Important Notes
1. Security:
SECURELY SAVE YOUR PRIVATE KEY: You can restore your wallet at any time via your private key and withdraw funds. Anyone with access to your private key can do the same.
SECURELY SAVE YOUR API KEY: Anyone with your API key can trade using the funds in your wallet.
Keys cannot be recovered if lost.
2. Wallet Usage:
You may create as many wallets as you like
If you are building a trading service for multiple users, you will probably want to create a new wallet per user