Fuelet | Wallet on Fuel
  • Introduction
  • Intergration guide
    • Intro
    • Detecting wallet presence
    • Selecting Fuelet as a connector
    • Best practice
    • Audit and Security Assurance
  • Wallet API
    • Intro
    • Connecting
    • Getting current account
    • Getting current network
    • Signing messages
    • Sending transactions
    • Events
  • Resources
    • Media Kit
Powered by GitBook
On this page
  1. Wallet API

Getting current network

To request the network the user is connected to, use the network method

const networkInfo = await fuel.network();
console.log("Network ", networkInfo);

It returns a promise with an object containing the url field, which has a GraphQL network endpoint, for example:

{url: "https://beta-5.fuel.network/graphql"}

Last updated 1 year ago