useEtherspotAddresses()
A React hook that returns all the blockchain addresses for all the blockchains that the Etherspot platform supports.
Introduction
How to use
import {
useEtherspotAddresses,
} from '@etherspot/transaction-kit';
// Later in the main component function...
const etherspotAddresses = useEtherspotAddresses();
// etherspotAddresses will look similar to this:
/**
* [{
* chainId: 137,
* chainName: 'matic',
* address: '0x0123...'
* }, {
* ...
* }]
/*🎉 Congratulations!
Last updated
Was this helpful?