Create a unsigned transaction to active an account
Usage
tronWeb.transactionBuilder.createAccount(address, options);
Parameter
address: String - The account address to be activated.
options: Json object - optional, for example, permission, {permissionId: 'xx'}.
Return
Object - Transaction created to activate an account.
Example
const transaction = await tronWeb.transactionBuilder.createAccount('TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g');
const signedTransaction = await tronWeb.trx.sign(transaction);
const result = await tronWeb.trx.sendRawTransaction(signedTransaction);