You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use stream money between XRP and Eth using Kavalabs Switch ILP Sdk, but unfortunately I am not able to do the same and please find the code and error logs below, Ideally the anticipated behavior is successful stream of money , but that does not happen .
I did refer the post from Interledger[(https://forum.interledger.org/t/interoperability-prototype-with-moneyd/382/14 )].
Error Logs :
Error: Error verifying tx: tecNO_DST
at E:\xpring\node_modules@kava-labs\ilp-plugin-xrp-paychan\src\utils\channel.ts:194:35
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at E:\xpring\node_modules@kava-labs\ilp-plugin-xrp-paychan\src\account.ts:401:7
at XrpAccount.openChannel (E:\xpring\node_modules@kava-labs\ilp-plugin-xrp-paychan\src\account.ts:378:26)
at ReducerQueue.tryToRunAnother (E:\xpring\node_modules@kava-labs\ilp-plugin-xrp-paychan\src\utils\queue.ts:70:22)
await sdk.deposit({
/** Uplink to deposit to */
uplink: xrpUplink,
/**
* Amount to deposit, in the unit of exchange
* (e.g. in this case, ether; not gwei or wei)
*/
amount: new BigNumber(20),
/**
* Callback to authorize the fee and amount to be transferred from layer 1, after it's calculated,
* which must return a Promise
*/
authorize: async ({ fee }) => {
console.log('Fee:', fee.amount.toString())
// Resolve the Promise continue with the deposit...
return
// ...or reject the Promise to cancel it:
throw new Error('Fee too high!')
}
})
ethUplink.balance$.subscribe(amount => {
console.log('Interledger balance:', amount.toString())
})
await sdk.streamMoney({
/** Amount to send in units of exchange of the source uplink */
amount: new BigNumber(10),
/** Sending uplink */
source: xrpUplink,
/** Receiving uplink */
dest: ethUplink,
/** Optionally, specify a maximum slippage margin against the most recently fetched exchange rate */
slippage: 0.02
})
}
run().catch(err => console.error(err))
The text was updated successfully, but these errors were encountered:
Kava's connector may not work, but you could try running your own local connector using connector-config. It requires running Redis, and you'd need to configure/pass these environment variables:
I am trying to use stream money between XRP and Eth using Kavalabs Switch ILP Sdk, but unfortunately I am not able to do the same and please find the code and error logs below, Ideally the anticipated behavior is successful stream of money , but that does not happen .
I did refer the post from Interledger[(https://forum.interledger.org/t/interoperability-prototype-with-moneyd/382/14 )].
Error Logs :
Code Snippet :
The text was updated successfully, but these errors were encountered: