- Node v14. opensea-js doesn't work with v16
- Alchemy and Opensea API keys
- Private key for your account. See https://metamask.zendesk.com/hc/en-us/articles/360015289632-How-to-Export-an-Account-Private-Key
The default ASSET is set as the Fractional ERC-1155 factory so it will work for all Fractional related ERC-1155s. Override it in your command if you're using a non-Fractional minted ERC-1155.
ALCHEMY_KEY="[redacted]" OPENSEA_KEY="[redacted]" ASSET_ID=1 PRICE="0.03" QUANTITY=1 PRIVATE_KEY="[redacted]" node bulk_list.js
All configurable values:
Variable | Description | Default |
---|---|---|
NETWORK | The Ethereum network to connect to (Mainnet or Rinkeby) | mainnet |
ALCHEMY_KEY | Free or paid Alchemy API key | |
OPENSEA_KEY | OpenSea API key | |
ASSET | Contract address of the ERC1155 being listed | 0xb2469a7dd9e154c97b99b33e88196f7024f2979e |
ASSET_ID | ID of the ERC115 being listed | |
QUANTITY | Number of listings to make | 1 |
PRICE | Price of each listing in ether | |
PRIVATE_KEY | Private key of your Ethereum account |
The OpenSea API key is the most limiting factor since obtaining one is so difficult. You can request it [here](https://docs.opensea.io/reference/request-an-api-key) but it will likely take a few weeks if it's even approved.