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

TronWeb does not have a method called getContract #554

Closed
topwood opened this issue Sep 4, 2024 · 2 comments
Closed

TronWeb does not have a method called getContract #554

topwood opened this issue Sep 4, 2024 · 2 comments

Comments

@topwood
Copy link

topwood commented Sep 4, 2024

image

via: https://docs.sun.io/developers/swap/sunswap-overview

tronWeb does not have a method called getContract at all:
image

Original request: Use the tron web SDK to implement Sunswap trading.

@topwood
Copy link
Author

topwood commented Sep 4, 2024

node version: v20.13.1

"dependencies": {
"@noble/secp256k1": "^1.7.1",
"tronweb": "^5.3.2"
}

@Satan-web3
Copy link
Contributor

The documentation gives wrong api. Please use let contract = await tronWeb.contract([], 'TXk8rQSAvPvBBNtqSoY6nCfsXWCSSpTVQF')

@topwood topwood closed this as completed Sep 26, 2024
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