const axios = require("axios");
(() : {
const config = {
headers: {
"Content-Type": "application/json",
},
};
const data = {
jsonrpc: "2.0",
id: 1,
method: "getInflightBundleStatuses",
params: ["[ \"b31e5fae4923f345218403ac1ab242b46a72d4f2a38d131f474255ae88f1ec9a\", \"e3c4d7933cf3210489b17307a14afbab2e4ae3c67c9e7157156f191f047aa6e8\", \"a7abecabd9a165bc73fd92c809da4dc25474e1227e61339f02b35ce91c9965e2\", \"e3934d2f81edbc161c2b8bb352523cc5f74d49e8d4db81b222c553de60a66514\", \"2cd515429ae99487dfac24b170248f6929e4fd849aa7957cccc1daf75f666b54\" ]"],
};
axios
.post(
"https://YOUR_QUICKNODE_ENDPOINT_HERE.com",
data,
config
)
.then(function (response) {
// handle success
console.log(response.data);
})
.catch((err) : {
// handle error
console.log(err);
});
})();
from jsonrpcclient import request, parse, Ok
import logging
import requests
response = requests.post("https://YOUR_QUICKNODE_ENDPOINT_HERE.com", json=request("getInflightBundleStatuses", ["[ \"b31e5fae4923f345218403ac1ab242b46a72d4f2a38d131f474255ae88f1ec9a\", \"e3c4d7933cf3210489b17307a14afbab2e4ae3c67c9e7157156f191f047aa6e8\", \"a7abecabd9a165bc73fd92c809da4dc25474e1227e61339f02b35ce91c9965e2\", \"e3934d2f81edbc161c2b8bb352523cc5f74d49e8d4db81b222c553de60a66514\", \"2cd515429ae99487dfac24b170248f6929e4fd849aa7957cccc1daf75f666b54\" ]"]))
parsed = parse(response.json())
if isinstance(parsed, Ok):
print(parsed.result)
else:
logging.error(parsed.message)
curl https://YOUR_QUICKNODE_ENDPOINT_HERE.com \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"getInflightBundleStatuses","params": ["[ \"b31e5fae4923f345218403ac1ab242b46a72d4f2a38d131f474255ae88f1ec9a\", \"e3c4d7933cf3210489b17307a14afbab2e4ae3c67c9e7157156f191f047aa6e8\", \"a7abecabd9a165bc73fd92c809da4dc25474e1227e61339f02b35ce91c9965e2\", \"e3934d2f81edbc161c2b8bb352523cc5f74d49e8d4db81b222c553de60a66514\", \"2cd515429ae99487dfac24b170248f6929e4fd849aa7957cccc1daf75f666b54\" ]"],"id":1,"jsonrpc":"2.0"}'