cURL
curl --request GET \
--url http://localhost:4100/v1/chainsconst options = {method: 'GET'};
fetch('http://localhost:4100/v1/chains', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"chains": [
{
"chainId": 8453,
"name": "Base Mainnet",
"testnet": true
}
]
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Chains
Get v1chains
Base chains this deployment serves. Every other chain is refused, so clients must hide it.
cURL
curl --request GET \
--url http://localhost:4100/v1/chainsconst options = {method: 'GET'};
fetch('http://localhost:4100/v1/chains', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"chains": [
{
"chainId": 8453,
"name": "Base Mainnet",
"testnet": true
}
]
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}