Fundamentals
JSON-RPC Basics
The PulseChain RPC endpoint implements the JSON-RPC 2.0 protocol over HTTPS.
The PulseChain RPC endpoint implements the JSON-RPC 2.0 protocol over HTTPS.
Request format
All requests are HTTP POST to https://rpc.pulsechain.box with Content-Type: application/json.
{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}
| Field | Type | Description |
|---|---|---|
jsonrpc | string | Must be "2.0" |
method | string | The RPC method name |
params | array | Method parameters (can be empty []) |
id | number or string | Request identifier, returned in the response |
Response format
Success:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x18b704b"
}
Error:
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32601,
"message": "Method not found"
}
}
Data encoding
All values are hex-encoded with a 0x prefix unless stated otherwise.
| Type | Encoding | Example |
|---|---|---|
| Integer | Hex, no leading zeros | "0x1a4" (420) |
| Byte data | Hex, even length | "0x68656c6c6f" |
| Address | 20-byte hex | "0x369369369369369369369369369369369369369" |
| Hash | 32-byte hex | "0xab12...ef56" |
| Boolean | JSON boolean | true / false |
| Null | JSON null | null |
Supported methods
This endpoint exposes methods from the following namespaces:
