const body = JSON.stringify({
instrumentCurrencyCode: 'BSV',
denominationCurrencyCode: 'USD',
description: 'Order #1234',
receivers: [{ destination: 'merchant_handle', sendAmount: 1.0 }],
});
const pathname = '/v1/waas/wallet/pay';
await fetch(`https://cloud.handcash.io${pathname}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'app-id': process.env.HANDCASH_APP_ID,
'app-secret': process.env.HANDCASH_APP_SECRET,
...signWaasRequest({
method: 'POST',
pathname,
body,
accessPrivateKeyHex: process.env.USER_ACCESS_PRIVATE_KEY,
}),
},
body,
});