0.0.7 • Published 2 years ago

use-tronlink v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

use-tronlink

:building_construction: Installation

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

:technologist: 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 (
    ...
  )
}

:closed_book: License