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
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

jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
string

Response for eth_chainId

Example:

"0x144"

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
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

jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
string

Response for eth_chainId

Example:

"0x144"