Need private packages and team management tools?Check out npm Teams »

ethmoji-js

0.0.27 • Public • Published

ethmoji-js

Let's developers interact with the Ethmoji game, starting with fetching your users' Ethmoji avatar.

Installation & Setup:
yarn add ethmoji-js
Using ES6 style imports (recommended):
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
}

Install

npm i ethmoji-js

DownloadsWeekly Downloads

33

Version

0.0.27

License

ISC

Unpacked Size

19 kB

Total Files

12

Last publish

Collaborators

  • avatar
  • avatar