UNPKG

@rori4/opensea-mod

Version:

JavaScript SDK for the OpenSea marketplace. Let users buy or sell crypto collectibles and other cryptogoods, all on your own site!

17 lines (16 loc) 710 B
import { OpenSeaPort } from './seaport'; import { OpenSeaAPI } from './api'; import { Network, EventData, EventType } from './types'; export { orderToJSON, orderFromJSON, WyvernProtocol } from './utils/utils'; export { encodeCall, encodeSell, encodeAtomicizedBuy, encodeAtomicizedSell, encodeDefaultCall, encodeReplacementPattern, AbiType, } from './utils/schema'; /** * Example setup: * * import * as Web3 from 'web3' * import { OpenSeaPort, Network } from 'opensea-js' * const provider = new Web3.providers.HttpProvider('https://mainnet.infura.io') * const client = new OpenSeaPort(provider, { * networkName: Network.Main * }) */ export { OpenSeaPort, OpenSeaAPI, EventData, EventType, Network };