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
{
"imports": {
"@types/tronweb": "./node_modules/@daochild/tronweb-typescript/dist/index.d.ts"
}
}
// <reference types="@types/tronweb" />
import TronWeb from 'tronweb';
Or
tronweb.d.ts
in your project src/types
(do not forget load this directory in tsconfig).
declare module '@type/tronweb' {
export * from '@daochild/tronweb-typescript';
}
To put a star ⭐ at the top right of the screen.
Tron development service, consulting and solution for your web3 project.
Contact with me:
https://t.me/daochild