Files
bybit-api/examples/apidoc/V5/P2P/get-user-payment.js

18 lines
384 B
JavaScript

const { RestClientV5 } = require('bybit-api');
// Initialize the client with testnet mode
const client = new RestClientV5({
testnet: true,
key: 'YOUR_API_KEY',
secret: 'YOUR_API_SECRET',
});
// Call the function
client
.getP2PUserPayments()
.then((response) => {
console.log('Response:', response);
})
.catch((error) => {
console.error('Error:', error);
});