RB
rbair23/hedera-fee-lib-app
Fee 2.0
Hedera Fee Calculator
This tool provides the library, REST API and UI for calculating fee for various Hedera APIs
Configuration
Backend
- Update the
fee-app/src/main/resources/application.propertiesfile to configure
- The server address and port on which the backend runs
- Allow CORS ports so that the frontend can access the backend
Here is a sample configuration:
server.port=${BACKEND_PORT:8080}
server.address=${BACKEND_HOST:0.0.0.0}
frontend.allowed-origins=http://localhost:5173,http://localhost:3000,http://localhost:80
Frontend
Configuration to inform frontend about where to reach the backend
- Update
fee-ui/.envfile.
Here is a sample configuration:
VITE_BACKEND_URL=http://localhost:8080/api/v1/transactions
Update this VITE_BACKEND_URL variable to point to the host:port of the backend
Configure the port on which the frontend runs
- Update the
fee-ui/vite.config.jsfile
Here is a sample configuration:
export default defineConfig({
plugins: [react()],
server: {
port: 3000
}
})
Update the port where you want the frontend to run.
On this page
Languages
Java87.0%JavaScript11.3%CSS0.7%Dockerfile0.4%HTML0.3%Shell0.2%
Contributors
Created May 13, 2025
Updated May 15, 2025