ExOpenSea.Assets.Index (ex_open_sea v0.0.7)

Return a cursor to a list of NFTs based on the specified filter parameters.

Auctions created on OpenSea don't use an escrow contract, which enables gas-free auctions and allows users to retain ownership of their items while they're on sale. In these cases, some NFTs from opensea.io may not appear in the API until a transaction has been completed.

https://docs.opensea.io/reference/getting-assets

Link to this section Summary

Link to this section Types

@type api_key() :: ExOpenSea.ApiKey.t()
Link to this type

assets_cursor()

@type assets_cursor() :: ExOpenSea.AssetsCursor.t()
Link to this type

error_reason()

@type error_reason() :: :parse_result_item | String.t()
@type params() :: %{
  optional(:owner) => String.t(),
  optional(:token_ids) => [String.t()],
  optional(:collection) => String.t(),
  optional(:collection_slug) => String.t(),
  optional(:order_direction) => String.t(),
  optional(:asset_contract_address) => String.t(),
  optional(:asset_contract_addresses) => [String.t()],
  optional(:limit) => String.t(),
  optional(:cursor) => String.t(),
  optional(:include_orders) => boolean()
}
Link to this type

raw_payload()

@type raw_payload() :: map()
@type result() ::
  {:ok, assets_cursor()} | {:error, error_reason(), raw_payload() | nil}

Link to this section Functions

Link to this function

get(api_key, params \\ %{})

@spec get(api_key(), params()) :: result()