Skip to content

Commit 8b67adc

Browse files
committed
Added REST API alternative
1 parent 99654ee commit 8b67adc

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

docs/cheqd-cli/cheqd-cli-fee-abstraction.md

+42
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,48 @@ all_host_chain_config:
4242
4343
If the `status` is `0`, the IBC denomination is allowed for transactions. If the `status` is `1`, the IBC denomination is not allowed for transactions. Also, if the IBC denomination is not included in the response, it is not allowed for transactions.
4444

45+
### Querying allowed IBC denominations via REST API
46+
47+
You can also query allowed IBC denominations using the REST API, which can be useful for applications that do not use the node CLI. You can fetch this by initiating a GET request to:
48+
49+
* **Mainnet**: `https://api.cheqd.net/fee-abstraction/feeabs/v1/all-host-chain-config`
50+
* **Testnet**: `https://api.cheqd.network/fee-abstraction/feeabs/v1/all-host-chain-config`
51+
52+
#### Response format for allowed IBC denominations from REST API
53+
54+
```json
55+
{
56+
"all_host_chain_config": [
57+
{
58+
"ibc_denom": "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4",
59+
"osmosis_pool_token_denom_in": "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4",
60+
"pool_id": "1273",
61+
"status": 0
62+
}
63+
]
64+
}
65+
```
66+
67+
### Querying allowed IBC denominations via REST API with a specific IBC denomination
68+
69+
You can also query allowed IBC denominations for a specific IBC denomination using the REST API. You can fetch this by initiating a GET request to:
70+
71+
* **Mainnet**: `https://api.cheqd.net/fee-abstraction/feeabs/v1/host-chain-config/<ibc_denom>`
72+
* **Testnet**: `https://api.cheqd.network/fee-abstraction/feeabs/v1/host-chain-config/<ibc_denom>`
73+
74+
#### Response format for allowed IBC denominations from REST API with a specific IBC denomination
75+
76+
```json
77+
{
78+
"host_chain_config": {
79+
"ibc_denom": "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4",
80+
"osmosis_pool_token_denom_in": "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4",
81+
"pool_id": "1273",
82+
"status": 0
83+
}
84+
}
85+
```
86+
4587
## Querying and declaring fees in transactions
4688

4789
### Querying real-time gas prices via CLI

0 commit comments

Comments
 (0)