DEV Community

Discussion on: Deploy NFTs with Truffle, IPFS OpenSea & Polygon

Collapse
 
imkane profile image
Kane

Thank you for this tutorial! Have you ever tried transferring tokens on the Matic network?

I'm having trouble using 'maticjs', and was wondering if you knew another option :)
github.com/maticnetwork/matic.js/d...

Collapse
 
yournewempire profile image
Archie Smyth

Hey Kane. This is a brief reply, as I am not at my PC right now. I would recommend using web3js or ethers, then calling the safeTransferFrom method on the erc 1155 contact. Thanks.

Collapse
 
imkane profile image
Kane

I tried using web3 but no luck. I scoured the internet looking for some sample code, but alas nothing :(

I don't know how to use web3 to select the contract (using the private key passed in from the command line). There's some ABI requirements apparently, but I have no idea how that works.

Ughhh.

Thread Thread
 
yournewempire profile image
Archie Smyth

I will follow you on here now. Then i shall dm you about what you are unsure about

Thread Thread
 
imkane profile image
Kane

Wow, really? You sir, are a gentleman and a scholar 😀

It's been so hard to find sample code for this.