magiceden

package
v0.0.0-...-81db2af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const INSC_COLLECTIONS = `` /* 493818-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionInfo

type CollectionInfo struct {
	Symbol                         string        `json:"symbol"`
	Name                           string        `json:"name"`
	ImageURI                       string        `json:"imageURI"`
	Chain                          string        `json:"chain"`
	InscriptionIcon                string        `json:"inscriptionIcon"`
	Description                    string        `json:"description"`
	Supply                         int           `json:"supply"`
	TwitterLink                    string        `json:"twitterLink"`
	DiscordLink                    string        `json:"discordLink"`
	WebsiteLink                    string        `json:"websiteLink"`
	CreatedAt                      string        `json:"createdAt"`
	OverrideContentType            string        `json:"overrideContentType"`
	DisableRichThumbnailGeneration bool          `json:"disableRichThumbnailGeneration"`
	Labels                         []interface{} `json:"labels"`
	CreatorTipsAddress             string        `json:"creatorTipsAddress"`
	EnableCollectionOffer          bool          `json:"enableCollectionOffer"`
}

type Inscription

type Inscription struct {
	Cohort                        string  `json:"cohort"`
	Name                          string  `json:"name"`
	CollectionSymbol              string  `json:"collectionSymbol"`
	CollectionId                  string  `json:"collectionId"`
	Vol                           float64 `json:"vol"`
	TotalVol                      float64 `json:"totalVol"`
	TotalTxns                     int     `json:"totalTxns"`
	VolPctChg                     float64 `json:"volPctChg,omitempty"`
	Txns                          int     `json:"txns"`
	TxnsPctChg                    float64 `json:"txnsPctChg,omitempty"`
	Fp                            float64 `json:"fp"`
	FpPctChg                      float64 `json:"fpPctChg,omitempty"`
	FpListingPrice                float64 `json:"fpListingPrice"`
	FpListingCurrency             string  `json:"fpListingCurrency"`
	HighestGlobalOfferBidCurrency string  `json:"highestGlobalOfferBidCurrency"`
	MarketCap                     float64 `json:"marketCap"`
	TotalSupply                   int     `json:"totalSupply"`
	ListedCount                   int     `json:"listedCount"`
	OwnerCount                    int     `json:"ownerCount"`
	UniqueOwnerRatio              float64 `json:"uniqueOwnerRatio"`
	Image                         string  `json:"image"`
	IsCompressed                  bool    `json:"isCompressed"`
	HasInscriptions               bool    `json:"hasInscriptions"`
	Currency                      string  `json:"currency"`
	Pending                       int     `json:"pending"`
	CurrencyUsdRate               float64 `json:"currencyUsdRate"`
	MarketCapUsd                  float64 `json:"marketCapUsd"`
	FpSparkLinePath               string  `json:"fpSparkLinePath"`
	Description                   string  `json:"description"`
}

used for get inscriptions

type MagicEdenService

type MagicEdenService struct {
	// contains filtered or unexported fields
}

func NewMagicedenService

func NewMagicedenService() *MagicEdenService

func (*MagicEdenService) GetCollectionInfo

func (s *MagicEdenService) GetCollectionInfo(collection string) (*CollectionInfo, error)

func (*MagicEdenService) GetInscriptionHardCode

func (s *MagicEdenService) GetInscriptionHardCode() ([]Inscription, error)

func (*MagicEdenService) GetInscriptionInfo

func (s *MagicEdenService) GetInscriptionInfo(inscriptionId string) (*MagicedenInscriptionInfo, error)

type MagicedenInscriptionInfo

type MagicedenInscriptionInfo struct {
	Id                            string   `json:"id"`
	ContentURI                    string   `json:"contentURI"`
	ContentType                   string   `json:"contentType"`
	ContentPreviewURI             string   `json:"contentPreviewURI"`
	Sat                           int64    `json:"sat"`
	SatName                       string   `json:"satName"`
	SatRarity                     string   `json:"satRarity"`
	SatBlockHeight                int      `json:"satBlockHeight"`
	SatBlockTime                  string   `json:"satBlockTime"`
	Satributes                    []string `json:"satributes"`
	GenesisTransaction            string   `json:"genesisTransaction"`
	GenesisTransactionBlockTime   string   `json:"genesisTransactionBlockTime"`
	GenesisTransactionBlockHeight int      `json:"genesisTransactionBlockHeight"`
	GenesisTransactionBlockHash   string   `json:"genesisTransactionBlockHash"`
	InscriptionNumber             int      `json:"inscriptionNumber"`
	Meta                          struct {
		Name       string `json:"name"`
		Attributes []struct {
			TraitType string `json:"trait_type"`
			Value     string `json:"value"`
		} `json:"attributes"`
	} `json:"meta"`
	Chain            string `json:"chain"`
	Owner            string `json:"owner"`
	CollectionSymbol string `json:"collectionSymbol"`
	Collection       struct {
		Symbol                         string        `json:"symbol"`
		Name                           string        `json:"name"`
		ImageURI                       string        `json:"imageURI"`
		Chain                          string        `json:"chain"`
		InscriptionIcon                string        `json:"inscriptionIcon"`
		Description                    string        `json:"description"`
		Supply                         int           `json:"supply"`
		TwitterLink                    string        `json:"twitterLink"`
		DiscordLink                    string        `json:"discordLink"`
		WebsiteLink                    string        `json:"websiteLink"`
		CreatedAt                      string        `json:"createdAt"`
		OverrideContentType            string        `json:"overrideContentType"`
		DisableRichThumbnailGeneration bool          `json:"disableRichThumbnailGeneration"`
		Labels                         []interface{} `json:"labels"`
		CreatorTipsAddress             string        `json:"creatorTipsAddress"`
		EnableCollectionOffer          bool          `json:"enableCollectionOffer"`
	} `json:"collection"`
	ItemType                   string `json:"itemType"`
	Location                   string `json:"location"`
	LocationBlockHeight        int    `json:"locationBlockHeight"`
	LocationBlockTime          string `json:"locationBlockTime"`
	LocationBlockHash          string `json:"locationBlockHash"`
	OutputValue                int    `json:"outputValue"`
	Output                     string `json:"output"`
	Listed                     bool   `json:"listed"`
	ListedAt                   string `json:"listedAt"`
	ListedPrice                int    `json:"listedPrice"`
	ListedMakerFeeBp           int    `json:"listedMakerFeeBp"`
	ListedSellerReceiveAddress string `json:"listedSellerReceiveAddress"`
	ListedForMint              bool   `json:"listedForMint"`
	SacAddress                 string `json:"sacAddress"`
	SacMerkleTreeSize          int    `json:"sacMerkleTreeSize"`
	DisplayName                string `json:"displayName"`
	LastSalePrice              int    `json:"lastSalePrice"`
	UpdatedAt                  string `json:"updatedAt"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL