fix(admin): resolve incorrect crypto balance calculation fallback displaying fiat amount
This commit is contained in:
17
testSweepResp.ts
Normal file
17
testSweepResp.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user