Fiber LogoFiber Docs
RPC API Reference

API Overview

RPC endpoint, request/response format, and authentication

RPC Endpoint

POST http://<node_address>:<port>/

Default: http://127.0.0.1:8227

Request Format

{
  "jsonrpc": "2.0",
  "method": "<method_name>",
  "params": [<param1>, <param2>, ...],
  "id": 1
}

Response Format

Success

{
  "jsonrpc": "2.0",
  "result": { ... },
  "id": 1
}

Error

{
  "jsonrpc": "2.0",
  "error": {
    "code": -32600,
    "message": "Invalid request"
  },
  "id": 1
}

Authentication

If Biscuit authentication is enabled, include a Bearer token in the Authorization header:

Authorization: Bearer <your_biscuit_token>

See Biscuit Authentication for details.


Fiber AI Assistant

Ask me anything

I can answer questions about Fiber Network using our documentation.

AI answers are based on Fiber documentation