OpenSeaAPIConfig for setting up the API, including an optional API key, network name, and base URL
Optional function for logging debug strings before and after requests are made
Base url for the API
Host url for OpenSea
Logger function to use when debugging
Page size to use for fetching orders
Get JSON data from API, sending auth token in headers
Path to URL endpoint under API
Data to send. Will be stringified using QueryString
Fetch an asset from the API, return null if it isn't found
Address of the asset's contract
The asset's token ID
Fetch list of assets from the API, returning the page of assets and the count of total assets
Query to use for getting orders. A subset of parameters on the OpenSeaAssetJSON type is supported
Page number, defaults to 1
Fetch an bundle from the API, return null if it isn't found
Fetch list of bundles from the API, returning the page of bundles and the count of total bundles
Query to use for getting orders. A subset of parameters on the OpenSeaAssetBundleJSON type is supported
Page number, defaults to 1
Get a list of orders from the orderbook, returning the page of orders and the count of total orders found.
Query to use for getting orders. A subset of parameters
on the OrderJSON type is supported
Page number, defaults to 1
Fetch list of fungible tokens from the API matching paramters
Query to use for getting orders. A subset of parameters on the OpenSeaAssetJSON type is supported
Page number, defaults to 1
POST JSON data to API, sending auth token in headers
Path to URL endpoint under API
Data to send. Will be JSON.stringified
RequestInit opts, similar to Fetch API. If it contains a body, it won't be stringified.
PUT JSON data to API, sending auth token in headers
Path to URL endpoint under API
Data to send
RequestInit opts, similar to Fetch API. If it contains a body, it won't be stringified.
Generated using TypeDoc
Create an instance of the OpenSea API