Current Gas Price
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/onchain/gas-priceimport requests
url = "https://api.asksurf.ai/gateway/v1/onchain/gas-price"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/onchain/gas-price', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"chain": "<string>",
"gas_price": "<string>",
"gas_price_gwei": 123
},
"meta": {
"cached": true,
"credits_used": 123
},
"$schema": "https://example.com/schemas/DataObjectResponseOnchainGasPriceItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Onchain
Current Gas Price
GET
/
gateway
/
v1
/
onchain
/
gas-price
Current Gas Price
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/onchain/gas-priceimport requests
url = "https://api.asksurf.ai/gateway/v1/onchain/gas-price"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/onchain/gas-price', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"chain": "<string>",
"gas_price": "<string>",
"gas_price_gwei": 123
},
"meta": {
"cached": true,
"credits_used": 123
},
"$schema": "https://example.com/schemas/DataObjectResponseOnchainGasPriceItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}