UNPKG

alt-opensea-js

Version:

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

18 lines (17 loc) 727 B
import { OpenSeaAPI } from "./api"; import { OpenSeaPort } from "./seaport"; 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, EventType, Network, }; export type { EventData };