Skip to content

A Simple React hook library that connects with Tronlink hot wallet

License

Notifications You must be signed in to change notification settings

ternak-bosque/use-tronlink

 
 

Repository files navigation

use-tronlink

A Simple React hook that connects with Tronlink wallet extension 📝


🏗️ Installation

  # Install using yarn
  yarn add use-tronlink
  
  # Install using npm
  npm install use-tronlink

🧑‍💻 Usage

use-tronlink is a simple hook just like other ones, follow the example above to use it.

import { useTronlink } from 'use-tronlink';


const MyComponent = () => {
  const { 
    address, // The connected wallet address
    walletName, // The wallet name
    trxBalance, // The wallet TRX balance
    isConnected, // A boolean checking it is connected or not
 } = useTronlink();


  return (
    ...
  )
}

📕 License

Released in 2022. This project is under the MIT license 🚀

Made with love by Eryk Luiz 🚀

About

A Simple React hook library that connects with Tronlink hot wallet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 86.2%
  • JavaScript 13.8%