Skip to content

Enable transfer with memo #171

Closed
sschiessl-bcp wants to merge 1 commit intodevelopfrom
feature/transfer_with_memo
Closed

Enable transfer with memo #171
sschiessl-bcp wants to merge 1 commit intodevelopfrom
feature/transfer_with_memo

Conversation

@sschiessl-bcp
Copy link
Collaborator

@sschiessl-bcp sschiessl-bcp commented Jun 18, 2021

BitShares:

  • enable supportsFeeCalculation
  • enable transfer with memo

For #169

This was tested with localhost fallback since beet.bitshares.org is not resolving properly on my end, domain was changed here.

Example

    function triggerTransfer(targetAccount, amountInSatoshi, assetId) {
        beet.allowLocalhostFallback();
        beet.get("BitShares Transfer Example", "BTS", true).then(app => {
            app.BTS.transfer(
                {
                    to: targetAccount,
                    amount:
                        {
                            satoshis: amountInSatoshi,
                            asset_id: assetId
                        },
                    memo: 'some memo text'
                }
            ).then(result => {
                console.log("Success", result);
            }).catch(err => {
                console.error(err);
            });
        }).catch(err => {
            console.error(err);
        });
    }
    
    triggerTransfer('sschiessl', 1000000000, '1.3.0');

Feel free to test this example on mainnet a couple times ;)

- enable supportsFeeCalculation
- enable transfer with memo
@grctest
Copy link
Contributor

grctest commented Sep 4, 2022

This is now superseded by #189

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

Successfully merging this pull request may close these issues.

2 participants