NOTE:
Please use official documentation for get actual information about method and their arguments.
https://developers.tron.network/reference/tronweb-object
Required: node v14+ LTS
npm install --save-dev @daochild/tronweb-typescript
- Import type in package.json as @types/tronweb.
{
"imports": {
"@types/tronweb": "./node_modules/@daochild/tronweb-typescript/dist/index.d.ts"
}
}
- Add reference type before import tronweb.
// <reference types="@types/tronweb" />
import TronWeb from 'tronweb';
To put a star ⭐ at the top right of the screen.