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 achieve TRC20 transfer #117

Open
wangrizhao opened this issue Dec 11, 2023 · 1 comment
Open

How to achieve TRC20 transfer #117

wangrizhao opened this issue Dec 11, 2023 · 1 comment

Comments

@wangrizhao
Copy link

No description provided.

@chernyshev
Copy link

   fromAddress := "..."
   toAddress := "..."
   contractAddress := "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t" // Tether USDT contract address
   amount := big.NewInt(1000000)                           // 1 USDT
   feeLimit := int64(1000000000)

   tx, err = s.client.TRC20Send(fromAddress, toAddress, contractAddress, amount, feeLimit)
   fmt.Println(tx)

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