Griptape.js
  • What is Griptape.js?
  • 🛹Getting Started
  • 🚀Bootstrapping Your App
  • 🗞️Interacting with Contracts
    • Contract Definitions
      • More on Definitions
    • Creating Contract Clients
    • Built-In Definitions
    • Extending Contract Definitions
    • Contract Registry
    • Instantiating Contracts
  • 🔑Using Viewing Keys and Permits
    • Using the viewing key manager
    • Using Keplr with Griptape
    • Managing Permits
  • 🕢Handling Events
  • ⚒️Using Utilities
  • 🔀API Reference
    • Bootstrap
    • Contracts
    • Viewing Keys
    • Permits
    • Events
    • Utilities
  • 🐝Tricks Tutorials
    • React Tutorials
      • Hello, Griptape
      • Hello, Contracts
      • Hello, Events
      • Hello, Viewing Keys
      • Hello, Permits
      • Hello, Transactions
      • Hello, Mint
    • Vue Tutorials
      • Hello, Griptape
      • Hello, Contracts
      • Hello, Events
      • Hello, Viewing Keys
      • Hello, Permits
      • Hello, Transactions
      • Hello, Mint
  • 💾Hackathon
    • Welcome Packet
    • Getting Set Up
    • Glossary
Powered by GitBook
On this page
  • getAddress()
  • getWalletInfo()
  • isAccountAvailable()
  1. API Reference

Utilities

PreviousEventsNextTricks Tutorials

Last updated 3 years ago

getAddress()

Arguments:

None.

Returns:

  • {string} : address.

Description: This function does not receive any arguments, but internally it uses the provider and takes the chainId to obtain the address of the connected account. This function returns a string containing that address.

getWalletInfo()

Arguments:

None.

Returns:

  • {} : a WalletInfo object.

Description: This function does not receive any arguments, but internally it uses the provider and takes the chainId to obtain the address and the name of the connected account. This function returns a object containing the address and name of the connected account.

isAccountAvailable()

Arguments:

None.

Returns:

  • {boolean} : account state.

Description: This function does not receive any arguments and returns a boolean value according to the account state.

🔀
WalletInfo
WalletInfo