Access Futureverse constants
The Futureverse-specific constants are available as:
These constants will match the stage
you defined when configuring FutureverseProvider
(either development
or production
).
There are four categories of constants:
CONTRACTS
- all relevant Futureverse contract addressesCHAINS
- Ethereum Mainnet, Ethereum Goerli Testnet, The Root Network Mainnet and The Root Network Porcini TestnetENDPOINTS
- all relevant Futureverse endpoints (e.g. the Asset Indexer)MISC
- miscellaneous.
For example, you could use the CHAINS
constant to get the chain ID of The Root Network and fetch the balance of XRP using Wagmi, like so:
Wagmi Signer caveat
The wagmi useSinger
returns null
after refreshing the page. To access the provider and signer, use the following hook:
Last updated