# IFdcRequestFeeConfigurations

> Interface for managing FDC request fee configuration.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

Source: https://dev.flare.network/fdc/reference/IFdcRequestFeeConfigurations

Interface for managing FDC request fee configuration.

Sourced from `IFdcRequestFeeConfigurations.sol` on [GitHub](https://github.com/flare-foundation/flare-smart-contracts-v2/blob/main/contracts/userInterfaces/IFdcRequestFeeConfigurations.sol).

## Overview[​](#overview "Direct link to Overview")

The IFdcRequestFeeConfigurations interface provides functionality for managing and retrieving fees associated with attestation requests in the Flare Data Connector (FDC) system. It allows for querying the base fee required for specific attestation requests.

## Functions[​](#functions "Direct link to Functions")

### getRequestFee[​](#getrequestfee "Direct link to getRequestFee")

Method to get the base fee for an attestation request. It reverts if the request is not supported.

```
function getRequestFee(    bytes _data) external view returns (    uint256);
```

**Parameters**

-   `_data`: ABI encoded attestation request

**Returns**

-   `uint256`: The base fee required for the specified attestation request

## Events[​](#events "Direct link to Events")

### TypeAndSourceFeeRemoved[​](#typeandsourcefeeremoved "Direct link to TypeAndSourceFeeRemoved")

Emitted when a fee configuration for a specific attestation type and source is removed.

```
event TypeAndSourceFeeRemoved(    bytes32 attestationType,    bytes32 source)
```

**Parameters**

-   `attestationType`: The type of attestation
-   `source`: The source identifier

### TypeAndSourceFeeSet[​](#typeandsourcefeeset "Direct link to TypeAndSourceFeeSet")

Emitted when a fee configuration for a specific attestation type and source is set.

```
event TypeAndSourceFeeSet(    bytes32 attestationType,    bytes32 source,    uint256 fee)
```

**Parameters**

-   `attestationType`: The type of attestation
-   `source`: The source identifier
-   `fee`: The fee amount set for the attestation type and source

## Usage Example[​](#usage-example "Direct link to Usage Example")

FeeChecker.sol

```
// SPDX-License-Identifier: MITpragma solidity ^0.8.25;import {ContractRegistry} from "@flarenetwork/flare-periphery-contracts/coston2/ContractRegistry.sol";import {IFdcHub} from "@flarenetwork/flare-periphery-contracts/coston2/IFdcHub.sol";import {IFdcRequestFeeConfigurations} from "@flarenetwork/flare-periphery-contracts/coston2/IFdcRequestFeeConfigurations.sol";contract FeeChecker {    function getRequestFee(        bytes calldata _attestationData    ) external view returns (uint256) {        // Use the registry to find the FdcHub        IFdcHub fdcHub = ContractRegistry.getFdcHub();        // From the FdcHub, get the current fee configuration contract        IFdcRequestFeeConfigurations feeConfigs = fdcHub            .fdcRequestFeeConfigurations();        // Return the fee for the given request data        return feeConfigs.getRequestFee(_attestationData);    }}
```

[Open example in Remix](https://remix.ethereum.org/#url=https://github.com/flare-foundation/developer-hub/blob/main/examples/developer-hub-solidity/FeeChecker.sol&version=builtin&evmVersion=cancun&optimize=true&runs=200)
