stellar-sdk
Advanced tools
Changelog
destinationAccount
as an argument, but it is not longer required by Horizon. (477)Changelog
Add server.strictReceivePaths
which adds support for /paths/strict-receive
. (444)
This function takes a list of source assets or a source address, a destination
address, a destination asset and a destination amount.
You can call it passing a list of source assets:
server.strictReceivePaths(sourceAssets,destinationAsset, destinationAmount)
Or a by passing a Stellar source account address:
server.strictReceivePaths(sourceAccount,destinationAsset, destinationAmount)
When you call this function with a Stellar account address, it will look at the account’s trustlines and use them to determine all payment paths that can satisfy the desired amount.
Add server.strictSendPaths
which adds support for /paths/strict-send
. (444)
This function takes the asset you want to send, and the amount of that asset,
along with either a list of destination assets or a destination address.
You can call it passing a list of destination assets:
server.strictSendPaths(sourceAsset, sourceAmount, [destinationAsset]).call()
Or a by passing a Stellar account address:
server.strictSendPaths(sourceAsset, sourceAmount, "GDRREYWHQWJDICNH4SAH4TT2JRBYRPTDYIMLK4UWBDT3X3ZVVYT6I4UQ").call()
When you call this function with a Stellar account address, it will look at the account’s trustlines and use them to determine all payment paths that can satisfy the desired amount.
Changelog
Utils.verifyChallengeTx
to verify SEP0010 "Challenge" Transaction. (#388)Utils.verifyTxSignedBy
to verify that a transaction has been signed by a given account. (#388)