Blockdaemon Documentation
Gas Fee Estimation API
About Ubiquity Gas Fee Estimation API
GET Fee Estimate
About Ubiquity Gas Fee Estimation API
With Ubiquity Gas Fee Estimation API you can get transaction fee estimates across multiple protocols.
This includes individual estimates for fast, medium, and slow speeds.
GET Fee Estimate
https://{ubiquity_url}/{protocol}/{network}/tx/estimate_fee
Returns fast, medium, and slow decimal fee estimations.
Developer Documentation: GET Fee Estimate
Learn how to authorize your request: Authentication Guide
Ubiquity URL
To run a query, add your Ubiquity URL. For most users this will be:
svc.blockdaemon.com/universal/v1
An example of this is shown below:
https://svc.blockdaemon.com/universal/v1/{protocol}/{network}/tx/estimate_fee
Note: If you created your Ubiquity API Key before September 2022, add the legacy Ubiquity URL:
ubiquity.api.blockdaemon.com/v1
An example of this is shown below:
https://ubiquity.api.blockdaemon.com/v1/{protocol}/{network}/tx/estimate_fee
Path Parameters
You should specify a protocol and a network as path parameters, e.g.:
ethereum/mainnet
Supported Protocols and Networks
Here is a full list of supported protocols and networks with their path parameters:
Protocol | Network | Path parameters |
Bitcoin | Mainnet Testnet |
bitcoin/mainnet bitcoin/testnet |
Bitcoin Cash | Mainnet Testnet |
bitcoincash/mainnet bitcoincash/testnet |
Ethereum | Mainnet Goerli Ropsten |
ethereum/mainnet ethereum/goerli ethereum/ropsten |
Litecoin | Mainnet Testnet |
litecoin/mainnet litecoin/testnet |
Example Queries
The query in this section provides a useful example for GET Fee Estimate.
To get fee estimations for the Ethereum Mainnet network, use the following query:
https://svc.blockdaemon.com/universal/v1/ethereum/mainnet/tx/estimate_fee