Skip to main content
POST
/
curl --request POST \
--url https://api.mainnet.abs.xyz/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_chainId",
"params": []
}'
{
"jsonrpc": "2.0",
"result": "0x144",
"id": 1
}

Query Parameters

method
enum<string>

The JSON-RPC method to call

Available options:
eth_chainId,
eth_call,
eth_estimateGas,
eth_gasPrice,
eth_newFilter,
eth_newBlockFilter,
eth_uninstallFilter,
eth_newPendingTransactionFilter,
eth_getLogs,
eth_getFilterLogs,
eth_getFilterChanges,
eth_getBalance,
eth_getBlockByNumber,
eth_getBlockByHash,
eth_getBlockTransactionCountByNumber,
eth_getBlockReceipts,
eth_getBlockTransactionCountByHash,
eth_getCode,
eth_getStorageAt,
eth_getTransactionCount,
eth_getTransactionByHash,
eth_getTransactionByBlockHashAndIndex,
eth_getTransactionReceipt,
eth_protocolVersion,
eth_sendRawTransaction,
eth_accounts,
eth_feeHistory,
web3_clientVersion

Body

application/json
  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
  • Option 6
  • Option 7
  • Option 8
  • Option 9
  • Option 10
  • Option 11
  • Option 12
  • Option 13
  • Option 14
  • Option 15
  • Option 16
  • Option 17
  • Option 18
  • Option 19
  • Option 20
  • Option 21
  • Option 22
  • Option 23
  • Option 24
  • Option 25
  • Option 26
  • Option 27
  • Option 28
jsonrpc
string
default:2.0
required

JSON-RPC version

method
enum<string>
required

Gets the current chain ID

Available options:
eth_chainId
id
integer
default:1
required

Request identifier

params
any[]

Parameters (empty for this method)

Response

200 - application/json

Successful response

  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
string

Response for eth_chainId

Example:

"0x144"

I