Files
Pay2Gateway/testSweepResp.ts

18 lines
516 B
TypeScript

import fetch from 'node-fetch';
async function verifySweepResponse() {
const res = await fetch('http://localhost:3000/api/crypto-sweep', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
txId: '5fda5442-23ea-4130-8646-d0a882ed2517',
network: 'SOLANA',
token: 'SOL'
})
});
const data = await res.json();
console.log("Sweep API returns:", data);
}
verifySweepResponse().catch(console.error);