try {
const payout = await Connect.pay({
client: businessClient,
body: {
instrumentCurrencyCode: 'BSV',
denominationCurrencyCode: 'USD',
receivers: [
{
destination: 'recipient@handcash.io',
sendAmount: 0.01
}
]
}
});
if (payout.data) {
console.log('Payout successful:', payout.data);
}
} catch (error) {
console.error('Payout failed:', error.message);
}