Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send a TX example #106

Open
YFrendo opened this issue Nov 22, 2021 · 2 comments
Open

Send a TX example #106

YFrendo opened this issue Nov 22, 2021 · 2 comments

Comments

@YFrendo
Copy link

YFrendo commented Nov 22, 2021

Hy everyone !
Thanks for your hard work for the community!
I know it's intended in your API to use a very raw format but it's a pain to integrate it inside my code and despite all my research I can't figure out how to do it properly.
Did someone can give me a very basic example to send a transaction with Nami wallet (JS)? (like send 1ADA to a given address).
I know I'm not the only one so it can also help a lot of lost dev and facilitate the adoption of the Wallet ;)
Thank you !

@waalge
Copy link

waalge commented Nov 22, 2021

https://github.com/Berry-Pool/spacebudz/blob/main/src/cardano/market/index.js

This is 'the' example. Its a bit more than 'hello-world', but everything you need to get started making txs with nami and the cardano serialization lib appears in that repo

@kieransimkin
Copy link

kieransimkin commented Dec 3, 2021

Just a suggestion - for the non-techs who just want to add a "Click here to pay me" button on their website - for their use-case it would make sense to have something like cardano.requestPayment(address,amount) - just a simple thing which automatically crafts a transaction inside Nami, rather than relying on them crafting a transaction in serialization-lib which is... non-trivial.
I have added this as a suggestion on CIP-030 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants