human-standard-multi-collectible-abi
v1.0.4
Published
Node module that exports the Ethereum ABI for ERC 1155 compatible tokens.
Downloads
11
Maintainers
Readme
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()