Developer Questions

Ask a Question
Back to All

Xaman website integration (USING NODEJS BACKEND, express)

Hi there, I am just trying a proof of concept which requires me to integrate the Xaman wallet to my website. I have been able to integrate it using the front end code provided in the Xaman documentation to connect the wallet, and make a secure payment using the backend code provided also in the documentation. These actions were performed separately, not in conjunction with each other.

When making the payment using the docs from the backend server I had to enter the address to send the payment to, manually. This is because I wasn't able to find a code stack that delivered me the xrpl address of the wallet that was connected.

So...my questions are, what is the stack flow when integrating the Xaman wallet to a website? Can it be done completely from the backend? Or....

Is the flow to use connect wallet JS frontend code to derive the connected wallet address information...then the address is posted to the backend to variables that fill the backend code when necessary? Or is there a backend code stack that I missed that acts like the frontend code in the documentation for wallet connection (perhaps I have missed something).

Best Regards, thanks for reading and any possible help