Deposit Address
The Fortmatic SDK offers it's own method for showing users just their Fortmatic wallet's public address.
1
// Initialize provider
2
import Fortmatic from 'fortmatic';
3
import Web3 from 'web3';
4
​
5
const fm = new Fortmatic('YOUR_API_KEY');
6
window.web3 = new Web3(fm.getProvider());
7
​
8
fm.user.deposit();
Copied!
Users will be prompted to login into their Fortmatic account, after which they'll see their public address and balance:
Last modified 2yr ago
Copy link