Provider API
Connect Accounts
NaboxWallet.tronLink.request({ method: 'tron_requestAccounts' });tronWeb
Signing and broadcasting transactions
const tronProvider = NaboxWallet.tronLink.tronWeb;
const transaction = await tronProvider.transactionBuilder.triggerSmartContract('toAddress', 'functionName', options, parameter, 'fromAddress');
// Signing transactions
const signedTx = await tronProvider.trx.sign(transaction.transaction);
// Broadcasting transactions
const res = await tronProvider.trx.sendRawTransaction(signedTransaction);
signMessage(Message Signature)
const tronProvider = NaboxWallet.tronLink.tronWeb;
const message = 'message'; // Signed Message
const result = await tronProvider.trx.sign(message);Event
Last updated