Returns an array of EIP-2718 binary-encoded transactions.
const response = await fetch('https://api.1inch.com/web3/1', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'debug_getRawTransaction',
params: ['string'],
id: 1,
}),
});
const data = await response.json();
console.log(data);
"0xf8678084342770c182520894658bdf435d810c91414ec09147daa6db624063798203e880820a95a0af5fc351b9e457a31f37c84e5cd99dd3c5de60af3de33c6f4160177a2c786a60a0201da7a21046af55837330a2c52fc1543cd4d9ead00ddf178dd96935b607ff9b"