flocore-node/docs/services/fee.md
2018-01-15 16:43:07 -08:00

23 lines
648 B
Markdown

# Fee Service
The fee service is a requirement of the insight-api service (not a flocore-node built-in service). Its primary purpose is to query a florincoin full node for the most up-to-date miner fees for transactions. A florincoin full node such as [BTC1](https://github.com/btc1/florincoin) or [bcoin](https://github.com/bcoin-org/bcoin) with an available RPC interface is required.
## Service Configuration
```json
"fee": {
"rpc": {
"user": "user",
"pass": "pass",
"host": "localhost",
"protocol": "http",
"port": 8332
}
}
```
## Usage Example
```bash
curl http://localhost:3001/insight-api/estimateFee
```