mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-08-23 08:30:51 +00:00
Bug:
```js
api.connect().then(() => {
const pathfind = {
source: {
address: USDCold,
amount: {
currency: 'USD',
value: '1.00' // <<<< Rippled response has "1" not "1.00"
}
},
destination: {
address: EURCold,
amount: {currency: 'EUR'}
}
};
return api.getPaths(pathfind).then(paths => {
console.log('PATHS: \n', JSON.stringify(paths, null, 2));
});
}).catch(console.log);
```
16 lines
267 B
JSON
16 lines
267 B
JSON
{
|
|
"source": {
|
|
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
|
"amount": {
|
|
"currency": "USD",
|
|
"value": "5.00"
|
|
}
|
|
},
|
|
"destination": {
|
|
"address": "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX",
|
|
"amount": {
|
|
"currency": "USD"
|
|
}
|
|
}
|
|
}
|