Let's developers interact with the Ethmoji game, starting with fetching your users' Ethmoji avatar.
yarn add ethmoji-js
import EthmojiAPI from "ethmoji-js";
...
const ethmojiAPI = new EthmojiAPI(web3.currentProvider);
await ethmojiAPI.init();
await avatar = ethmojiAPI.getAvatar(ownerAddress);
=> Avatar {
name: Ethmoji name
tokenId: Ethmoji tokenId in the smart contract
imageUrl: Ethmoji image url for displaying
ownerAddress: Ethmoji ownerAddress
ownerUsername: Ethmojis ownerUsername on OpenSea
}