import { TatumTronSDK } from '@tatumio/tron' import { REPLACE_ME_WITH_TATUM_API_KEY } from '@tatumio/shared-testing-common' const tronSdk = TatumTronSDK({ apiKey: REPLACE_ME_WITH_TATUM_API_KEY }) export async function tronOffchainExample() { const account = await tronSdk.offchain.depositAddress.checkExists('LepMzqfXSgQommH2qu3fk7Gf5xgoHQsP1b') const address = await tronSdk.offchain.depositAddress.create('LepMzqfXSgQommH2qu3fk7Gf5xgoHQsP1b', 1) const adresses = await tronSdk.offchain.depositAddress.createMultiple({ addresses: [ { accountId: '5e6be8e9e6aa436299950c41', derivationKey: 0, }, { accountId: '5e6be8e9e6aa436299951n35', derivationKey: 1, }, ], }) const assignedAddress = await tronSdk.offchain.depositAddress.assign( '5e6be8e9e6aa436299950c41', 'LepMzqfXSgQommH2qu3fk7Gf5xgoHQsP1b', ) const addressByAccount = await tronSdk.offchain.depositAddress.getByAccount('5e6be8e9e6aa436299950c41') const withdrawals = await tronSdk.offchain.withdrawal.getAll('Done') await tronSdk.offchain.depositAddress.remove( '5e6be8e9e6aa436299950c41', 'LepMzqfXSgQommH2qu3fk7Gf5xgoHQsP1b', ) await tronSdk.offchain.storeTokenAddress('LepMzqfXSgQommH2qu3fk7Gf5xgoHQsP1b', 'MY_TOKEN') }