Adding Support for a Web3 Wallet
Last updated: January 15th, 2021
Identifying Your Provider
If you're a web3 wallet developer or user, you'll definitely want to have people see your name and logo when they browse MyCrypto with your browser:
It's easy to make that happen, just open a pull request with the following changes:
- Add a new unique
WalletId
tosrc/types/walletId.ts
. - Add a new entry to
src/config/wallets.ts
using theWalletId
. Make sure to include a logo (.svg
) for your project insrc/assets/images/wallets
and reference it in the entry. - Add a translation entry in
src/translations/lang/en.json
for thelid
value provided in step 2. - In the
getWeb3Config
function insrc/utils/web3.ts
, add a line to detect your wallet type from the Web3 provider, and return the wallet configuration added in step 2. - In
WALLET_STEPS
insrc/components/SignTransactionWallets/index.ts
, add a new line for yourWalletId
and use the defaultSignTransactionWeb3
component. - Add a new entry for your
WalletId
toWalletFactory
insrc/services/WalletService/walletService.ts
.
Suggesting Your Provider
If you'd like for us to suggest your Web3 provider during wallet creation or Web3 unlock as an alternative, please reach out to press@mycrypto.com.