xrpl.js
xrpl.js copied to clipboard
ripple_path_find / path_find won't show any possible paths when using IOU as source_currencie
const pathFindrequest = { "id": 8, "command": "ripple_path_find", // "command":"path_find", // "subcommand": "create", "source_account": "ra53Mf6nVXsHRZWhAhEhAiTxsbUKi7Li6E", "source_currencies": [ { "currency": "5852646F67650000000000000000000000000000", // XRDOGE "issuer" : "rLqUC2eCPohYvJCEBJ77eCCqVL2uEiczjA" } ], "destination_account": "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq", "destination_amount": { "value": "0.001", "currency": "USD", "issuer": "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq" // Gatehub USD } }
let pathfind = await client.request( pathFindrequest );
console.log(JSON.stringify( pathfind,null,2 ) ,'pathfind' )
the response won't show any possible paths. But there should be XRDOGE => XRP => USD
am i missing something ?
https://xrpl.org/websocket-api-tool.html#ripple_path_find
this demo on xrpl.org shows "error": "notSupported" => when using ripple_path_find through websocket ... if you use it through JSON-RPC it is working. The description tells, ripple_path_find is viable in both websockket and RPC. There must be something wrong ?
This is because the servers disabled ripple_path_find method. I also opened an issue regarding whether path finding is enabled or not in the rippled repo.
For you the path_find method should work instead :)