September 2019
Beginner to intermediate
540 pages
13h 3m
English
As we discussed earlier,the PUBLISH YOUR ARTS page is the place for the art owner to do the following:
Initially,they publish their product on the digital art market by creating an ERC721 token.
Here is the code for how to publish products:
await this.state.contractInstance.methods.
createTokenAndSellArt(title,description, date, authorName, price, imageValue)
.send({from: this.state.user })
The web3 calls the smart contract createTokenAndSellArt function with the send() transaction. It will create an ERC721 token and then publish the art in the decentralized digital art market.
Read now
Unlock full access