Skip to main content

path_find RPC Method

Loading...

Updated on
Jan 10, 2024

path_find RPC Method

A client can only have one pathfinding request open at a time. If another pathfinding request is already open on the same connection, the old request is automatically closed and replaced with the new request.

Parameters

subcommand
string
REQUIRED
Loading...
source_account
string
REQUIRED
Loading...
destination_account
string
REQUIRED
Loading...
destination_amount
string
REQUIRED
Loading...
send_max
string
Loading...
paths
string
Loading...

Returns

result
object
Loading...
alternatives
array
Loading...
paths_computed
array
Loading...
source_amount
string/object
Loading...
destination_amount
string/object
Loading...
destination_account
string
Loading...
destination_amount
string/object
Loading...
source_account
string
Loading...
full_reply
boolean
Loading...
warnings
array
Loading...
id
integer
Loading...
message
string
Loading...
Request
1
wscat -c \
2
# wait for connection
3
{"id":1,"command":"path_find","ledger_index": "current", "subcommand": "create","source_account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59","destination_account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59","destination_amount": {"value": "0.001","currency": "USD","issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"}}
4
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free