Performs a JSON-RPC call using the specified relayer.
Development Documentation
You're viewing documentation for unreleased features from the main branch. For production use, see the latest stable version (v1.1.x).
AuthorizationBearer <token>
In: header
Path Parameters
relayer_idstring
The unique identifier of the relayer
JSON-RPC request with method and parameters
id?JsonRpcId | null
jsonrpcstring
Response Body
curl -X POST "https://loading/api/v1/relayers/string/rpc" \  -H "Content-Type: application/json" \  -d '{    "id": 1,    "jsonrpc": "2.0",    "method": "feeEstimate",    "params": {      "fee_token": "SOL",      "network": "solana",      "transaction": "base64_encoded_transaction"    }  }'{
  "error": {
    "code": 0,
    "description": "string",
    "message": "string"
  },
  "id": "string",
  "jsonrpc": "string",
  "result": {
    "conversion_rate": "string",
    "estimated_fee": "string",
    "method": "feeEstimate"
  }
}{
  "data": null,
  "message": "Bad Request",
  "success": false
}{
  "data": null,
  "message": "Unauthorized",
  "success": false
}{
  "data": null,
  "message": "Relayer with ID relayer_id not found",
  "success": false
}{
  "data": null,
  "message": "Too Many Requests",
  "success": false
}{
  "data": null,
  "message": "Internal Server Error",
  "success": false
}