Closed manuelreina closed 1 month ago
Thanks for your message @intelliot I have just realized that I haven't explained myself with clarity. Although the above description covers what I am trying to do and the issue itself, I see that is not very well explained.
I have created this codesandbox to show exactly where I am encountering the issue.
Summary:
Issue Details:
@manuelreina Welcome!
On xrpl.js v3, by default the Wallet uses an ED25519 encoding instead of the older but less performant Secp256k1 encoding. When generating your wallet, please specify algorithm = ECDSA.secp256k1
. Please let me know if that resolves your issue.
@pdp2121 Thank you very much! That was the problem. I will specify the old enconding until I have time to extend the method with functionality to handle multiple encoding scenarios. Thanks again! 🙂
Description: First of sorry if this is not the place where I should put this. I am newbie to both the Block chain technology and the Ripple ecosystem. I am developing a very simple app to understand concepts and use it to manage my XRP accounts and I wondered if you could help spot what I am doing wrong. I encountered an issue trying to send transactions in the Mainnet (wss://s2.ripple.com:51233/), although the same code works in Test (wss://s.altnet.rippletest.net:51233). The error I get is an "RippleError - Account not found" and the looks to be focused on the Wallet.fromSeed method in the xrpl library which returns a wallet apparently new instead of my actual wallet. It's a paper wallet I have and the thing is that when I use an XRP wallet app like Xaman (introducing the same Seed) it works.
Steps to Reproduce: Send a transaction to a Kraken account (including the destination tag), using the below code.
Expected Behavior: Successful transaction to the chosen destination address
Actual Behavior: Error sending transaction. The wallet retrieved from the provided Seed is not my wallet and the code throws a RippleError - Account not found.
Environment: OS: Windows 10 Node Version: 16.16.0 XRPL Version: 3.0.0
Code & Error The code I use to send the transaction is very simple, and it needs to be improved with validations, etc, but as I mentioned it works connecting to Test.
This is the tx object that I send:![image](https://github.com/XRPLF/xrpl.js/assets/15227137/d533e667-f6cb-4364-914b-aaf2a714314f)
And this is the error that I get:![image](https://github.com/XRPLF/xrpl.js/assets/15227137/b2798b38-6c2d-4f93-b226-af45f5e697d0)