To get started, create a new OpenSeaJS client, called an OpenSeaPort □, using your Web3 provider: import * as Web3 from 'web3' Sudo npm explore npm -g - npm install # (Optional) update node-gyp Getting Started Sudo xcode-select -switch /Library/Developer/CommandLineTools # Enable command line tools If you run into an error while building the dependencies and you're on a Mac, run this: xcode-select -install # Install Command Line Tools if you haven't already. Then, in your project, run: npm install -save opensea-js Execute nvm use, if you have Node Version Manager. We recommend switching to Node.js version 8.11 to make sure common crypto dependencies work. Then you can create orders off-chain or fulfill orders on-chain, and listen to events (like ApproveAllAssets or WrapEth) in the process. You get started by instantiating your own seaport. It allows developers to access the official orderbook, filter it, create buy orders ( offers), create sell orders ( auctions), create collections of assets to sell at once ( bundles), and complete trades programmatically.įor the first time, you can build a cryptocommerce dapp. This is the JavaScript SDK for OpenSea, the largest marketplace for crypto collectibles. You don't have to deploy your own smart contracts or backend orderbooks. With OpenSea.js, you can easily build your own native marketplace for your non-fungible tokens, or NFTs. A JavaScript library for crypto-native ecommerce: buying, selling, and bidding on any cryptogood.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |