Get FeePool fees for a swap
Retrieves detailed fee pool information for a specific swap transaction identified by the L1 transaction ID. This endpoint queries the contract state to retrieve all fee-related amounts in CWEB tokens, including amounts sent to the fee pool, fees charged by contracts, amounts locked by execution requests (PACTs), and the fee receiver address. This information is useful for tracking fee distribution and understanding the cost breakdown of a swap transaction.
Query Parameters
The L1 transaction ID that initiated the swap. Should be passed withput "0x" prefix.
The C1 contract address for the source token.
The C2 contract address for the destination token.
Backend URL. Default is https://api-cloud.coinweb.io/wallet. This URL is used to query the contract's claim storage to retrieve fee pool information.
uriResponse Body
curl -X GET "https://cwap-api.coinhq.store/pactswap_cm/getFeePoolFees?fromL1TxId=a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d&fromC1ContractId=0x6f20d1802288c90d2a044d3f7afae73fda261b27d85c0e01fdaaf3199b2c0e85&toC2ContractId=0x6f20d1802288c90d2a044d3f7afae73fda261b27d85c0e01fdaaf3199b2c0e85&backendUrl=https%3A%2F%2Fapi-cloud.coinweb.io%2Fwallet"{
"cwebSentToFeepool": "1000000000000000000",
"feeReceiver": "0x10362c4ba80f729f7fd542f880d52a4b64a2f94263936dcac221a596ddefcef2",
"cwebEmittedByC1toC2": "10000000000000000000",
"cwebC2Fee": "100000000000000000",
"cwebLockedByPACT": "5000000000000000000"
}{
"message": "Fee pool fees not found"
}Was this documentation helpful? Any suggestions?