Handle errors and troubleshoot issues with React nekuda.js
elements.submit()
, always include a try...catch
block to handle submission failures. These can occur due to invalid input, network issues, or other processing problems.
useNekudaWallet()
hook provides an error
state that indicates if there was an issue initializing the wallet, often due to an invalid public key or network problems preventing the SDK from loading necessary resources.
publicKey
you are using is correct, valid, and matches the environment (test/live) you intend to use.@nekuda/react-nekuda-js
.