An SDK for OpenSea API.
- Get Account
- Get NFTs (by account)
- Get Contract
- Get NFTs (by contract)
- Get an NFT
- Refresh NFT Metadata
- Get NFTs (by collection)
- Get Collections
- Get a Collection
- Get Traits
- Build an Offer
- Get Collection Offers
- Create Criteria Offer
- Create Individual Offer
- Create Listing
- Fulfill a Listing
- Fullfill an Offer
- Get All Listings (by collection)
- Get All Offers (by collection)
- Get Individual Offers
- Get Listings
- Get Order
- Get Trait Offers
go get -ugithub.com/xTransact/openseaapi
cli := NewClient(
WithApiKey(os.Getenv("OPENSEA_API_KEY")),
)
// Get account on mainnet by wallet address
resp, err := cli.GetAccount(ctx, addr)
// Get account on sepolia testnet by wallet address
resp, err := cli.GetAccount(ctx, addr,UseTestnets())