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

How to call TriggerSmartContract to interact with TRC20 smart contract? #11

Open
soika opened this issue Feb 21, 2020 · 1 comment
Open

Comments

@soika
Copy link

soika commented Feb 21, 2020

Hello All,
I want to use this lib to transfer a TRC20 token by a request of TriggerSmartContract
var request = new TriggerSmartContract { OwnerAddress = ByteString.CopyFromUtf8("address"), TokenId = token_id, CallTokenValue = 10, // to send 10 tokens CallValue = 0, ContractAddress = ByteString.CopyFromUtf8("address"), Data = ByteString.CopyFromUtf8(???) };
And I found this method to call:
return await GetWallet().TriggerContractAsync(request, _configuration.GetCallOptions(token));
So cound you please tell me what is the value of 'Data' property of TriggerSmartContract object?

Your help appreciated.

@ChainFans
Copy link

Hello, has it been solved? Can you send me your solution

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

2 participants