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 = 'Basic YXBpLXVzZXI6dXNlci1wYXNz'; // This is a placeholder
const requestOptions = {
method: 'GET',
headers: {
'Authorization': authorizationHeader,
'Content-Type': 'application/json'
}
};
const response = await fetch(`https://api.clipper.exchange/rfq/pool?chain_id=${chainId}&fieldset=${fieldset}`, requestOptions);
const data = await response.json();
console.log(data);Last updated
Was this helpful?
