1.0.4 • Published 2 years ago

human-standard-multi-collectible-abi v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Human Standard Multi Collectible ABI

A simple node module that exports the Ethereum ABI for ERC 1155 compatible tokens.

Use

import Web3 from 'web3';

const abi = require('human-standard-multi-collectible-abi');
const web3 = new Web3(Web3.givenProvider || 'http://localhost:8545');

const collectible = new web3.eth.Contract(abi, contractAddress);

// Get token's balance
const balance = await collectible.methods.balanceOf(walletPublicAddress,tokenId).call()

References