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

Pull Fields and Generate Transaction #24

Open
thontron opened this issue May 11, 2019 · 8 comments
Open

Pull Fields and Generate Transaction #24

thontron opened this issue May 11, 2019 · 8 comments

Comments

@thontron
Copy link

thontron commented May 11, 2019

@sschiessl-bcp I would like to allow beet users to pull from a page on my website and generate a transfer operation in beet. The page has a simple paragraph with three variable fields where a user selects from a drop-down menu. These variables are "recipient", "type & amount asset", & "memo content". Could user generate and sign a transfer operation with these variables and inject-raw-tx.html? Thank you.

@sschiessl-bcp
Copy link
Collaborator

I have adjusted the examples/transfer.html, please check develop on monday. You wont need inject example for that.

@thontron
Copy link
Author

thontron commented Jun 2, 2019

Thank you! I look forward to testing out the change!

@sschiessl-bcp
Copy link
Collaborator

This got somehow lost in my local history and didn't get pushed .. restored it now. Please have a look here

https://github.com/bitshares/beet-js/blob/develop/examples/bitshares/transfer.html

Adding the amount asset and memo through dynamic JavaScript is straightforward, does that help?

@thontron
Copy link
Author

thontron commented Jun 11, 2019 via email

@sschiessl-bcp
Copy link
Collaborator

Put memo: "bal" in the payload

@thontron
Copy link
Author

thontron commented Jun 17, 2019 via email

@sschiessl-bcp
Copy link
Collaborator

Sorry for the delay, you can always ping me in such cases

app.BTS.transfer(
                {
                    to: targetAccount,
                    amount:
                        {
                            satoshis: amountInSatoshi,
                            asset_id: assetId
                        },
                    memo: "Some text"
                }
            )

@clockworkgr
Copy link
Member

FWIW, have a look at https://github.com/beetapp/beet-payments

You can generate urls such as :

http://paylink.get-beet.io/#10000/bts/clockwork

which when visited weill create the relevant TX and pop it up in beet

Doesnt support memos right now but could easily be extended to look for a 4th urlencoded memo parameter

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