How to use clipper RFQ API?
const fetch = require('node-fetch');
const chainId = 137; // You can use a different network. Look for our supported networks
const fieldset = 'offchain-data';
const authorizationHeader = 'YXBpLXVzZXI6dXNlci1wYXNz'; // This is a placeholder
const requestOptions = {
method: 'GET',
headers: {
'x-api-key': authorizationHeader,
'Content-Type': 'application/json'
}
};
const response = await fetch(`https://blade-api.sushi.com/rfq/v2/pool/${chainId}?fieldset=${fieldset}`, requestOptions);
const data = await response.json();
console.log(data);Last updated
Was this helpful?
