Documentation ¶
Index ¶
- Constants
- type ClientV2
- func (o *ClientV2) FetchAllAssetsByOwner(chainID walletCommon.ChainID, owner common.Address, cursor string, limit int) (*thirdparty.FullCollectibleDataContainer, error)
- func (o *ClientV2) FetchAllAssetsByOwnerAndContractAddress(chainID walletCommon.ChainID, owner common.Address, ...) (*thirdparty.FullCollectibleDataContainer, error)
- func (o *ClientV2) FetchAssetsByCollectibleUniqueID(uniqueIDs []thirdparty.CollectibleUniqueID) ([]thirdparty.FullCollectibleData, error)
- func (o *ClientV2) FetchCollectionsDataByContractID(contractIDs []thirdparty.ContractID) ([]thirdparty.CollectionData, error)
- func (o *ClientV2) ID() string
- func (o *ClientV2) IsChainSupported(chainID walletCommon.ChainID) bool
- func (o *ClientV2) IsConnected() bool
- type CollectionData
- type ContractData
- type ContractID
- type DetailedNFT
- type DetailedNFTContainer
- type HTTPClient
- type NFT
- type NFTContainer
- type OwnerV2
- type TraitV2
- type TraitValue
Constants ¶
View Source
const (
OpenseaV2ID = "openseaV2"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientV2 ¶ added in v0.163.14
type ClientV2 struct {
// contains filtered or unexported fields
}
func NewClientV2 ¶ added in v0.163.14
func NewClientV2(apiKey string, httpClient *HTTPClient) *ClientV2
new opensea v2 client.
func (*ClientV2) FetchAllAssetsByOwner ¶ added in v0.163.14
func (o *ClientV2) FetchAllAssetsByOwner(chainID walletCommon.ChainID, owner common.Address, cursor string, limit int) (*thirdparty.FullCollectibleDataContainer, error)
func (*ClientV2) FetchAllAssetsByOwnerAndContractAddress ¶ added in v0.163.14
func (o *ClientV2) FetchAllAssetsByOwnerAndContractAddress(chainID walletCommon.ChainID, owner common.Address, contractAddresses []common.Address, cursor string, limit int) (*thirdparty.FullCollectibleDataContainer, error)
func (*ClientV2) FetchAssetsByCollectibleUniqueID ¶ added in v0.163.14
func (o *ClientV2) FetchAssetsByCollectibleUniqueID(uniqueIDs []thirdparty.CollectibleUniqueID) ([]thirdparty.FullCollectibleData, error)
func (*ClientV2) FetchCollectionsDataByContractID ¶ added in v0.170.0
func (o *ClientV2) FetchCollectionsDataByContractID(contractIDs []thirdparty.ContractID) ([]thirdparty.CollectionData, error)
func (*ClientV2) IsChainSupported ¶ added in v0.163.14
func (o *ClientV2) IsChainSupported(chainID walletCommon.ChainID) bool
func (*ClientV2) IsConnected ¶ added in v0.167.5
type CollectionData ¶ added in v0.170.0
type ContractData ¶ added in v0.170.0
type ContractID ¶ added in v0.170.0
type DetailedNFT ¶ added in v0.163.14
type DetailedNFT struct { TokenID *bigint.BigInt `json:"identifier"` Collection string `json:"collection"` Contract common.Address `json:"contract"` TokenStandard string `json:"token_standard"` Name string `json:"name"` Description string `json:"description"` ImageURL string `json:"image_url"` AnimationURL string `json:"animation_url"` MetadataURL string `json:"metadata_url"` Owners []OwnerV2 `json:"owners"` Traits []TraitV2 `json:"traits"` }
type DetailedNFTContainer ¶ added in v0.166.11
type DetailedNFTContainer struct {
NFT DetailedNFT `json:"nft"`
}
type HTTPClient ¶ added in v0.142.2
type HTTPClient struct {
// contains filtered or unexported fields
}
func NewHTTPClient ¶ added in v0.163.14
func NewHTTPClient() *HTTPClient
type NFT ¶ added in v0.163.14
type NFT struct { TokenID *bigint.BigInt `json:"identifier"` Collection string `json:"collection"` Contract common.Address `json:"contract"` TokenStandard string `json:"token_standard"` Name string `json:"name"` Description string `json:"description"` ImageURL string `json:"image_url"` MetadataURL string `json:"metadata_url"` }
type NFTContainer ¶ added in v0.163.14
type TraitValue ¶
type TraitValue string
func (*TraitValue) UnmarshalJSON ¶
func (st *TraitValue) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.