curl -X POST "http://localhost:9090/igp_rules" \
-H "Content-Type: application/json" \
-d \
'{
"policy": "None",
"matching_list": [
{
"messageid": "0x03ae9509ddf792965c98729b43f0988d689ae17c79619e87e6c670f61eb1d4bc"
}
]
}'
const response = await fetch('http://localhost:9090/igp_rules', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
policy: "None",
matching_list: [
{
messageid: "0x03ae9509ddf792965c98729b43f0988d689ae17c79619e87e6c670f61eb1d4bc"
}
]
})
});
import requests
response = requests.post('http://localhost:9090/igp_rules', json={
"policy": "None",
"matching_list": [
{
"messageid": "0x03ae9509ddf792965c98729b43f0988d689ae17c79619e87e6c670f61eb1d4bc"
}
]
})
{
"count": 4,
"skipped": []
}
HTTP API
Add IGP Rule
POST
/
igp_rules
curl -X POST "http://localhost:9090/igp_rules" \
-H "Content-Type: application/json" \
-d \
'{
"policy": "None",
"matching_list": [
{
"messageid": "0x03ae9509ddf792965c98729b43f0988d689ae17c79619e87e6c670f61eb1d4bc"
}
]
}'
const response = await fetch('http://localhost:9090/igp_rules', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
policy: "None",
matching_list: [
{
messageid: "0x03ae9509ddf792965c98729b43f0988d689ae17c79619e87e6c670f61eb1d4bc"
}
]
})
});
import requests
response = requests.post('http://localhost:9090/igp_rules', json={
"policy": "None",
"matching_list": [
{
"messageid": "0x03ae9509ddf792965c98729b43f0988d689ae17c79619e87e6c670f61eb1d4bc"
}
]
})
{
"count": 4,
"skipped": []
}
Add a new Interchain Gas Payment (IGP) rule.
This endpoint is only available when gas enforcers are configured.
Show Request Body
Show Request Body
curl -X POST "http://localhost:9090/igp_rules" \
-H "Content-Type: application/json" \
-d \
'{
"policy": "None",
"matching_list": [
{
"messageid": "0x03ae9509ddf792965c98729b43f0988d689ae17c79619e87e6c670f61eb1d4bc"
}
]
}'
const response = await fetch('http://localhost:9090/igp_rules', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
policy: "None",
matching_list: [
{
messageid: "0x03ae9509ddf792965c98729b43f0988d689ae17c79619e87e6c670f61eb1d4bc"
}
]
})
});
import requests
response = requests.post('http://localhost:9090/igp_rules', json={
"policy": "None",
"matching_list": [
{
"messageid": "0x03ae9509ddf792965c98729b43f0988d689ae17c79619e87e6c670f61eb1d4bc"
}
]
})
{
"count": 4,
"skipped": []
}
Was this page helpful?
⌘I