atomicassets

package module
v0.0.0-...-918cf91 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: ISC Imports: 7 Imported by: 0

README

atomicassets-go

A simple API Wrapper for the AtomicHub API

Note

All functions are not tested or guaranteed to work correctly yet.

Install

go get -u github.com/World-of-Cryptopups/atomicassets-go

Usage

package main

import (
    "fmt"
    "log"

	"github.com/World-of-Cryptopups/atomicassets-go"
)

func main () {
	a := atomicassets.New()

	q, err := a.GetAssets(&atomicassets.GetAssetsQuery{
		CollectionName: "cryptopuppie",
		Limit: 1,
	})
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(q.Data[0].AssetID)
	fmt.Println(q.Data[0].Name)
}
  • You can also create a new instance with your a custom endpoint and http client.
package main

import (
    "fmt"
    "log"

	"github.com/World-of-Cryptopups/atomicassets-go"
)

func main () {
	a := atomicassets.NewCustom("your-custom-endpoint", &http.Client{})
}

Currently Implemented Endpoints

Only /atomicassets/ endpoints are implemented since the name implies.

  • Assets
  • Collections
  • Schemas
  • Templates
  • Offers
  • Transfers
  • Accounts
  • Burns
© 2021 | World of Cryptopups

Documentation

Index

Constants

View Source
const ACCOUNTS_API = "accounts"
View Source
const ASSETS_API = "assets"
View Source
const BURNS_API = "burns"
View Source
const COLLECTIONS_API = "collections"
View Source
const OFFERS_API = "offers"
View Source
const SCHEMAS_API = "schemas"
View Source
const TEMPLATES_API = "templates"
View Source
const TRANSFERS_API = "transfers"

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCollectionDataProps

type AccountCollectionDataProps struct {
	Templates []AccountCollectionDataTemplatesProps `json:"templates"`
	Schemas   []AccountCollectionDataSchemasProps   `json:"schemas"`
}

type AccountCollectionDataSchemasProps

type AccountCollectionDataSchemasProps struct {
	SchemaName string `json:"schema_name"`
	Assets     string `json:"assets"`
}

type AccountCollectionDataTemplatesProps

type AccountCollectionDataTemplatesProps AccountDataTemplatesProps

type AccountCollectionProps

type AccountCollectionProps struct {
	Success   bool                       `json:"success"`
	Data      AccountCollectionDataProps `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64                      `json:"query_time"`
	Message   string                     `json:"message,omitempty"` // error message will be here
}

type AccountDataCollectionsProps

type AccountDataCollectionsProps struct {
	Collection CollectionsDataProps `json:"collection"`
	Assets     string               `json:"assets"`
}

type AccountDataProps

type AccountDataProps struct {
	Collections []AccountDataCollectionsProps `json:"collections"`
	Templates   []AccountDataTemplatesProps
	Assets      string `json:"assets"`
}

type AccountDataTemplatesProps

type AccountDataTemplatesProps struct {
	TemplateID string `json:"template_id"`
	Assets     string `json:"assets"`
}

type AccountProps

type AccountProps struct {
	Success   bool               `json:"success"`
	Data      []AccountDataProps `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64              `json:"query_time"`
	Message   string             `json:"message,omitempty"` // error message will be here
}

type AccountsDataProps

type AccountsDataProps struct {
	Account string `json:"account"`
	Assets  string `json:"assets"`
}

type AccountsProps

type AccountsProps struct {
	Success   bool                   `json:"success"`
	Data      []CollectionsDataProps `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64                  `json:"query_time"`
	Message   string                 `json:"message,omitempty"` // error message will be here
}

GetAccounts response

type AssetsDataProps

type AssetsDataProps struct {
	Contract           string        `json:"contract"`
	AssetID            string        `json:"asset_id"`
	Owner              string        `json:"owner"`
	IsTransferable     bool          `json:"is_transferable"`
	IsBurnable         bool          `json:"is_burnable"`
	Collection         Collection    `json:"collection"`
	Schema             Schema        `json:"schema"`
	Template           Template      `json:"template"`
	MutableData        MutableData   `json:"mutable_data"`
	ImmutableData      MutableData   `json:"immutable_data"`
	TemplateMint       string        `json:"template_mint"`
	BackedTokens       []interface{} `json:"backed_tokens"`
	BurnedByAccount    interface{}   `json:"burned_by_account"`
	BurnedAtBlock      interface{}   `json:"burned_at_block"`
	BurnedAtTime       interface{}   `json:"burned_at_time"`
	UpdatedAtBlock     string        `json:"updated_at_block"`
	UpdatedAtTime      string        `json:"updated_at_time"`
	TransferredAtBlock string        `json:"transferred_at_block"`
	TransferredAtTime  string        `json:"transferred_at_time"`
	MintedAtBlock      string        `json:"minted_at_block"`
	MintedAtTime       string        `json:"minted_at_time"`
	Data               Data          `json:"data"`
	Name               string        `json:"name"`
}

type AssetsIDLogsProps

type AssetsIDLogsProps struct {
	Success   bool           `json:"success"`
	Data      []LogDataProps `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64          `json:"query_time"`
	Message   string         `json:"message,omitempty"` // error message will be here
}

GetAssetIDLogs response

type AssetsIDProps

type AssetsIDProps struct {
	Success   bool            `json:"success"`
	Data      AssetsDataProps `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64           `json:"query_time"`
	Message   string          `json:"message,omitempty"` // error message will be here
}

GetAssetID response

type AssetsIDStatsProps

type AssetsIDStatsProps struct {
	Success   bool                 `json:"success"`
	Data      AssetsStatsDataProps `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64                `json:"query_time"`
	Message   string               `json:"message,omitempty"` // error message will be here

}

GetAssetIDStats response

type AssetsProps

type AssetsProps struct {
	Success   bool              `json:"success"`
	Data      []AssetsDataProps `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64             `json:"query_time"`
	Message   string            `json:"message,omitempty"` // error message will be here
}

GetAssets response

type AssetsStatsDataProps

type AssetsStatsDataProps struct {
	TemplateMint string `json:"template_mint"`
}

type AtomicAssets

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

func New

func New() *AtomicAssets

Create a new AtomicAssets instance.

func NewCustom

func NewCustom(endpoint string, client *http.Client) (*AtomicAssets, error)

Create a new AtomicAssets instance with custom api endpoint and http client.

func (*AtomicAssets) GetAccount

func (a *AtomicAssets) GetAccount(account string, options *GetAccountQuery) (*AccountProps, error)

GetAccount gets a specific account.

func (*AtomicAssets) GetAccountCollection

func (a *AtomicAssets) GetAccountCollection(account, collection string) (*AccountCollectionProps, error)

GetAccountCollection gets the templates and schemas count by account.

func (*AtomicAssets) GetAccounts

func (a *AtomicAssets) GetAccounts(options *GetAccountsQuery) (*AccountsProps, error)

GetAccounts gets the accounts which oen atomicassets NFTs.

func (*AtomicAssets) GetAssetID

func (a *AtomicAssets) GetAssetID(id string) (*AssetsIDProps, error)

GetAssetID fetches an assets by its id.

func (*AtomicAssets) GetAssetIDLogs

func (a *AtomicAssets) GetAssetIDLogs(id string, options *GetAssetLogsQuery) (*AssetsIDLogsProps, error)

GetAssetIDLogs fetches the logs of an asset with its id.

func (*AtomicAssets) GetAssetIDStats

func (a *AtomicAssets) GetAssetIDStats(id string) (*AssetsIDStatsProps, error)

GetAssetIDStats fetches the stats of an asset with its id.

func (*AtomicAssets) GetAssets

func (a *AtomicAssets) GetAssets(options *GetAssetsQuery) (*AssetsProps, error)

GetAssets fetches assets.

func (*AtomicAssets) GetBurns

func (a *AtomicAssets) GetBurns(options *GetBurnsQuery) (*BurnsProps, error)

GetBurns gets the burns.

func (*AtomicAssets) GetBurnsAccount

func (a *AtomicAssets) GetBurnsAccount(account string, options *GetBurnsQuery) (*BurnsAccountProps, error)

GetBurnsAccount gets the burns of a specific account.

func (*AtomicAssets) GetCollectionName

func (a *AtomicAssets) GetCollectionName(name string) (*CollectionNameProps, error)

GetCollectionName gets the collection with its name.

func (*AtomicAssets) GetCollectionNameLogs

func (a *AtomicAssets) GetCollectionNameLogs(name string, options *GetCollectionNameLogs) (*CollectionNameLogsProps, error)

GetCollectionNameStats gets the collection's logs.

func (*AtomicAssets) GetCollectionNameStats

func (a *AtomicAssets) GetCollectionNameStats(name string) (*CollectionNameStatsProps, error)

GetCollectionNameStats gets the collection's stats.

func (*AtomicAssets) GetCollections

func (a *AtomicAssets) GetCollections(options *GetCollectionsQuery) (*CollectionsProps, error)

GetCollections fetchers collections.

func (*AtomicAssets) GetOfferID

func (a *AtomicAssets) GetOfferID(offerID int) (*OffersData, error)

GetOfferID gets the offer by its id.

func (*AtomicAssets) GetOfferIDLogs

func (a *AtomicAssets) GetOfferIDLogs(offerID int, options *GetOfferIDLogsQuery) (*OfferIDLogsProps, error)

GetOfferIDLogs gets the offer id's logs.

func (*AtomicAssets) GetOffers

func (a *AtomicAssets) GetOffers(options *GetOffersQuery) (*OffersProps, error)

GetOffers fetches offers.

func (*AtomicAssets) GetSchemaName

func (a *AtomicAssets) GetSchemaName(collectionName, schemaName string) (*SchemaNameProps, error)

GetCollectionName gets the collection with its name.

func (*AtomicAssets) GetSchemaNameLogs

func (a *AtomicAssets) GetSchemaNameLogs(collectionName, schemaName string, options *GetSchemaNameLogs) (*SchemaNameLogsProps, error)

GetCollectionNameStats gets the collection's logs.

func (*AtomicAssets) GetSchemaNameStats

func (a *AtomicAssets) GetSchemaNameStats(collectionName, schemaName string) (*SchemaNameStatsProps, error)

GetCollectionNameStats gets the collection's stats.

func (*AtomicAssets) GetSchemas

func (a *AtomicAssets) GetSchemas(options *GetSchemasQuery) (*SchemaProps, error)

GetSchemas fetchers collections.

func (*AtomicAssets) GetTemplateID

func (a *AtomicAssets) GetTemplateID(collectionName string, templateID int) (*TemplateIDProps, error)

GetTemplateID gets the template by its id.

func (*AtomicAssets) GetTemplateIDLogs

func (a *AtomicAssets) GetTemplateIDLogs(collectionName string, templateID int, options *GetTemplateIDLogs) (*TemplateIDLogsProps, error)

GetTemplateIDLogs gets the collection's logs.

func (*AtomicAssets) GetTemplateIDStats

func (a *AtomicAssets) GetTemplateIDStats(collectionName string, templateID int) (*TemplateIDStatsProps, error)

GetTemplateIDStats gets the collection's stats.

func (*AtomicAssets) GetTemplates

func (a *AtomicAssets) GetTemplates(options *GetTemplatesQuery) (*TemplatesProps, error)

GetTemplates fetches templates.

func (*AtomicAssets) GetTransfers

func (a *AtomicAssets) GetTransfers(options *GetTransfersQuery) (*TransfersProps, error)

GetTransfers fetches transfers.

type BurnsAccountDataCollectionsProps

type BurnsAccountDataCollectionsProps struct {
	CollectionName string `json:"collection_name"`
	Assets         string `json:"assets"`
}

type BurnsAccountDataProps

type BurnsAccountDataProps struct {
	Collections []BurnsAccountDataCollectionsProps `json:"collections"`
	Templates   []BurnsAccountDataTemplatesProps   `json:"templates"`
	Assets      string                             `json:"assets"`
}

type BurnsAccountDataTemplatesProps

type BurnsAccountDataTemplatesProps struct {
	CollectionName string `json:"collection_name"`
	TemplateID     string `json:"template_id"`
	Assets         string `json:"assets"`
}

type BurnsAccountProps

type BurnsAccountProps struct {
	Success   bool                    `json:"success"`
	Data      []BurnsAccountDataProps `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64                   `json:"query_time"`
	Message   string                  `json:"message,omitempty"` // error message will be here
}

type BurnsDataProps

type BurnsDataProps AccountsDataProps

type BurnsProps

type BurnsProps struct {
	Success   bool             `json:"success"`
	Data      []BurnsDataProps `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64            `json:"query_time"`
	Message   string           `json:"message,omitempty"` // error message will be here
}

type Collection

type Collection struct {
	CollectionName     string        `json:"collection_name"`
	Name               string        `json:"name"`
	Img                string        `json:"img"`
	Author             string        `json:"author"`
	AllowNotify        bool          `json:"allow_notify"`
	AuthorizedAccounts []string      `json:"authorized_accounts"`
	NotifyAccounts     []interface{} `json:"notify_accounts"`
	MarketFee          float64       `json:"market_fee"`
	CreatedAtBlock     string        `json:"created_at_block"`
	CreatedAtTime      string        `json:"created_at_time"`
}

type CollectionNameLogsProps

type CollectionNameLogsProps AssetsIDLogsProps

GetCollectionNameLogs response

type CollectionNameProps

type CollectionNameProps struct {
	Success   bool                 `json:"success"`
	Data      CollectionsDataProps `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64                `json:"query_time"`
	Message   string               `json:"message,omitempty"` // error message will be here
}

GetCollectionName response

type CollectionNameStatsProps

type CollectionNameStatsProps struct {
	Success   bool                      `json:"success"`
	Data      CollectionsStatsDataProps `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64                     `json:"query_time"`
	Message   string                    `json:"message,omitempty"` // error message will be here
}

GetCollectionNameStats response

type CollectionsDataProps

type CollectionsDataProps struct {
	Contract           string   `json:"contract"`
	CollectionName     string   `json:"collection_name"`
	Name               string   `json:"name"`
	Author             string   `json:"author"`
	AllowNotify        bool     `json:"allow_notify"`
	AuthorizedAccounts []string `json:"authorized_accounts"`
	NotifyAccounts     []string `json:"notify_accounts"`
	MarketFee          float64  `json:"market_fee"`
	Data               Data     `json:"data"`
	CreatedAtBlock     string   `json:"created_at_block"`
	CreatedAtTime      string   `json:"created_at_time"`
}

type CollectionsProps

type CollectionsProps struct {
	Success   bool                   `json:"success"`
	Data      []CollectionsDataProps `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64                  `json:"query_time"`
	Message   string                 `json:"message,omitempty"` // error message will be here
}

GetCollections response

type CollectionsStatsDataProps

type CollectionsStatsDataProps struct {
	Assets    string `json:"assets"`
	Burned    string `json:"burned"`
	Templates string `json:"templates"`
	Schemas   string `json:"schemas"`
}

type Data

type Data map[string]interface{}

type Format

type Format struct {
	Name string `json:"name"`
	Type Type   `json:"type"`
}

type GetAccountQuery

type GetAccountQuery struct {
	HideOffers          bool     `url:"hide_offers,omitempty"`
	CollectionBlacklist []string `url:"collection_blacklist,omitempty" del:","`
	CollectionWhitelist []string `url:"collection_whitelist,omitempty" del:","`
}

type GetAccountsQuery

type GetAccountsQuery struct {
	Match               string   `url:"match,omitempty"`
	CollectionName      string   `url:"collection_name,omitempty"`
	SchemaName          string   `url:"schema_name,omitempty"`
	TemplateID          string   `url:"template_id,omitempty"`
	HideOffers          bool     `url:"hide_offers,omitempty"`
	CollectionBlacklist []string `url:"collection_blacklist,omitempty" del:","`
	CollectionWhitelist []string `url:"collection_whitelist,omitempty" del:","`
	IDs                 []string `url:"ids,omitempty" del:","`
	LowerBound          string   `url:"lower_bound,omitempty"`
	UpperBound          string   `url:"upper_bound,omitempty"`
	Page                int64    `url:"page,omitempty"`
	Limit               int64    `url:"limit,omitempty"`
	Order               string   `url:"order,omitempty"`
}

type GetAssetLogsQuery

type GetAssetLogsQuery struct {
	Page            int    `url:"page,omitempty"`
	Limit           int    `url:"limit,omitempty"`
	Order           string `url:"order,omitempty"`
	ActionWhitelist string `url:"action_whitelist,omitempty"`
	ActionBlacklist string `url:"action_blacklist,omitempty"`
}

type GetAssetsQuery

type GetAssetsQuery struct {
	CollectionName          string   `url:"collection_name,omitempty"`
	SchemaName              string   `url:"schema_name,omitempty"`
	TemplateID              int      `url:"template_id,omitempty"`
	IsTransferable          bool     `url:"is_transferable,omitempty"`
	IsBurnable              bool     `url:"is_burnable,omitempty"`
	Burned                  bool     `url:"burned,omitempty"`
	Owner                   string   `url:"owner,omitempty"`
	Match                   string   `url:"match,omitempty"`
	CollectionBlacklist     []string `url:"collection_blacklist,omitempty" del:","`
	CollectionWhitelist     []string `url:"collection_whitelist,omitempty" del:","`
	OnlyDuplicateTemplates  bool     `url:"only_duplicate_templates,omitempty"`
	HasBackedTokens         bool     `url:"has_backed_tokens,omitempty"`
	AuthorizedAccount       bool     `url:"authorized_account,omitempty"`
	TemplateWhitelist       []string `url:"template_whitelist,omitempty" del:","`
	TemplateBlacklist       []string `url:"template_blacklist,omitempty" del:","`
	HideTemplatesByAccounts string   `url:"hide_templates_by_accounts,omitempty"`
	HideOffers              bool     `url:"hide_offers,omitempty"`
	IDs                     []string `url:"ids,omitempty" del:","`
	LowerBound              []string `url:"lower_bound,omitempty" del:","`
	UpperBound              []string `url:"upper_bound,omitempty" del:","`
	Before                  int64    `url:"before,omitempty"`
	After                   int64    `url:"after,omitempty"`
	Page                    int      `url:"page,omitempty"`
	Limit                   int      `url:"limit,omitempty"`
	Order                   string   `url:"order,omitempty"`
	Sort                    string   `url:"sort,omitempty"`
}

type GetBurnsQuery

type GetBurnsQuery struct {
	CollectionName      string   `url:"collection_name,omitempty"`
	SchemaName          string   `url:"schema_name,omitempty"`
	TemplateID          string   `url:"template_id,omitempty"`
	CollectionBlacklist []string `url:"collection_blacklist,omitempty" del:","`
	CollectionWhitelist []string `url:"collection_whitelist,omitempty" del:","`
	IDs                 []string `url:"ids,omitempty" del:","`
	LowerBound          string   `url:"lower_bound,omitempty"`
	UpperBound          string   `url:"upper_bound,omitempty"`
	Page                int64    `url:"page,omitempty"`
	Limit               int64    `url:"limit,omitempty"`
	Order               string   `url:"order,omitempty"`
}

type GetCollectionNameLogs

type GetCollectionNameLogs GetAssetLogsQuery

type GetCollectionsQuery

type GetCollectionsQuery struct {
	Author              string   `url:"author,omitempty"`
	Match               string   `url:"match,omitempty"`
	AuthorizedAccount   string   `url:"authorized_account,omitempty"`
	NotifyAccount       string   `url:"notify_account,omitempty"`
	CollectionBlacklist []string `url:"collection_blacklist,omitempty" del:","`
	CollectionWhitelist []string `url:"collection_whitelist,omitempty" del:","`
	IDs                 []string `url:"ids,omitempty" del:","`
	LowerBound          string   `url:"lower_bound,omitempty"`
	UpperBound          string   `url:"upper_bound,omitempty"`
	Before              int64    `url:"before,omitempty"`
	After               int64    `url:"after,omitempty"`
	Page                int      `url:"page,omitempty"`
	Limit               int      `url:"limit,omitempty"`
	Order               string   `url:"order,omitempty"`
	Sort                string   `url:"sort,omitempty"`
}

type GetOfferIDLogsQuery

type GetOfferIDLogsQuery GetAssetLogsQuery

type GetOffersQuery

type GetOffersQuery struct {
	Account                 string   `url:"account,omitempty"`
	Sender                  string   `url:"sender,omitempty"`
	Recipient               string   `url:"recipient,omitempty"`
	State                   string   `url:"state,omitempty"`
	IsRecipientContract     bool     `url:"is_recipient_contact,omitempty"`
	AssetID                 []string `url:"asset_id,omitempty" del:","`
	TemplateID              []string `url:"template_id,omitempty" del:","`
	SchemaName              []string `url:"schema_name,omitempty" del:","`
	CollectionName          []string `url:"collection_name,omitempty" del:","`
	AccountWhitelist        string   `url:"account_whitelist,omitempty"`
	AccountBlacklist        string   `url:"account_blacklist,omitempty"`
	SenderAssetWhitelist    string   `url:"sender_asset_whitelist,omitempty"`
	SenderAssetBlacklist    string   `url:"sender_asset_blacklist,omitempty"`
	RecipientAssetWhitelist string   `url:"recipient_asset_whitelist,omitempty"`
	RecipientAssetBlacklist string   `url:"recipient_asset_blacklist,omitempty"`
	HideContracts           bool     `url:"hide_contracts,omitempty"`
	Ids                     []string `url:"ids,omitempty" del:","`
	LowerBound              string   `url:"lower_bound,omitempty"`
	UpperBound              string   `url:"upper_bound,omitempty"`
	Before                  int64    `url:"before,omitempty"`
	After                   int64    `url:"after,omitempty"`
	Page                    int      `url:"page,omitempty"`
	Limit                   int      `url:"limit,omitempty"`
	Order                   string   `url:"order,omitempty"`
	Sort                    string   `url:"sort,omitempty"`
}

type GetSchemaNameLogs

type GetSchemaNameLogs GetAssetLogsQuery

type GetSchemasQuery

type GetSchemasQuery struct {
	CollectionName      string   `url:"collection_name,omitempty"`
	AuthorizedAccount   string   `url:"authorized_account,omitempty"`
	SchemaName          string   `url:"schema_name,omitempty"`
	Match               string   `url:"match,omitempty"`
	CollectionBlacklist []string `url:"collection_blacklist,omitempty" del:","`
	CollectionWhitelist []string `url:"collection_whitelist,omitempty" del:","`
	IDs                 []string `url:"ids,omitempty" del:","`
	LowerBound          string   `url:"lower_bound,omitempty"`
	UpperBound          string   `url:"upper_bound,omitempty"`
	Before              int64    `url:"before,omitempty"`
	After               int64    `url:"after,omitempty"`
	Page                int      `url:"page,omitempty"`
	Limit               int      `url:"limit,omitempty"`
	Order               string   `url:"order,omitempty"`
	Sort                string   `url:"sort,omitempty"`
}

type GetTemplateIDLogs

type GetTemplateIDLogs GetAssetLogsQuery

type GetTemplatesQuery

type GetTemplatesQuery struct {
	CollectionName      string   `url:"collection_name,omitempty"`
	SchemaName          string   `url:"schema_name,omitempty"`
	IssuedSupply        int      `url:"issued_supply,omitempty"`
	MinIssuedSupply     int      `url:"min_issued_supply,omitempty"`
	MaxIssuedSupply     int      `url:"max_issued_supply,omitempty"`
	HasAssets           bool     `url:"has_assets,omitempty"`
	MaxSupply           int      `url:"max_supply,omitempty"`
	IsBurnable          bool     `url:"is_burnable,omitempty"`
	IsTransferable      bool     `url:"is_transferable,omitempty"`
	AuthorizedAccount   string   `url:"authorized_account,omitempty"`
	Match               string   `url:"match,omitempty"`
	CollectionBlacklist []string `url:"collection_blacklist,omitempty" del:","`
	CollectionWhitelist []string `url:"collection_whitelist,omitempty" del:","`
	IDs                 []string `url:"ids,omitempty" del:","`
	LowerBound          string   `url:"lower_bound,omitempty"`
	UpperBound          string   `url:"upper_bound,omitempty"`
	Before              int64    `url:"before,omitempty"`
	After               int64    `url:"after,omitempty"`
	Page                int      `url:"page,omitempty"`
	Limit               int      `url:"limit,omitempty"`
	Order               string   `url:"order,omitempty"`
	Sort                string   `url:"sort,omitempty"`
}

type GetTransfersQuery

type GetTransfersQuery struct {
	Account             string   `url:"account,omitempty"`
	Sender              string   `url:"sender,omitempty"`
	Recipient           string   `url:"recipient,omitempty"`
	AssetID             string   `url:"asset_id,omitempty"`
	TemplateID          string   `url:"template_id,omitempty"`
	SchemaName          string   `url:"schema_name,omitempty"`
	CollectionName      string   `url:"collection_name,omitempty"`
	HideContracts       bool     `url:"hide_contracts,omitempty"`
	IDs                 []string `url:"ids,omitempty" del:","`
	LowerBound          string   `url:"lower_bound,omitempty"`
	UpperBound          string   `url:"upper_bound,omitempty"`
	Before              int64    `url:"before,omitempty"`
	After               int64    `url:"after,omitempty"`
	CollectionBlacklist []string `url:"collection_blacklist,omitempty" del:","`
	CollectionWhitelist []string `url:"collection_whitelist,omitempty" del:","`
	Page                int64    `url:"page,omitempty"`
	Limit               int64    `url:"limit,omitempty"`
	Order               string   `url:"order,omitempty"`
	Sort                string   `url:"sort,omitempty"`
}

type LogDataProps

type LogDataProps struct {
	LogID          string `json:"log_id"`
	Name           string `json:"name"`
	Data           Data   `json:"data"`
	TXID           string `json:"txid"`
	CreatedAtBlock string `json:"created_at_block"`
	CreatedAtTime  string `json:"created_at_time"`
}

type MutableData

type MutableData map[string]interface{}

type OfferIDLogsProps

type OfferIDLogsProps AssetsIDLogsProps

type OffersData

type OffersData struct {
	Contract            string            `json:"contract"`
	OfferID             string            `json:"offer_id"`
	SenderName          string            `json:"sender_name"`
	RecipientName       string            `json:"recipient_name"`
	Memo                string            `json:"memo"`
	State               int64             `json:"state"`
	IsSenderContract    bool              `json:"is_sender_contract"`
	IsRecipientContract bool              `json:"is_recipient_contract"`
	SenderAssets        []AssetsDataProps `json:"sender_assets"`
	RecipientAssets     []AssetsDataProps `json:"recipient_assets"`
	UpdatedAtBlock      string            `json:"updated_at_block"`
	UpdatedAtTime       string            `json:"updated_at_time"`
	CreatedAtBlock      string            `json:"created_at_block"`
	CreatedAtTime       string            `json:"created_at_time"`
}

type OffersProps

type OffersProps struct {
	Success   bool         `json:"success"`
	Data      []OffersData `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64        `json:"query_time"`
	Message   string       `json:"message,omitempty"` // error message will be here
}

type Schema

type Schema struct {
	SchemaName     string   `json:"schema_name"`
	Format         []Format `json:"format"`
	CreatedAtBlock string   `json:"created_at_block"`
	CreatedAtTime  string   `json:"created_at_time"`
}

type SchemaCollection

type SchemaCollection struct {
	CollectionName     string   `json:"collection_name"`
	Name               string   `json:"name"`
	Author             string   `json:"author"`
	AllowNotify        bool     `json:"allow_notify"`
	AuthorizedAccounts []string `json:"authorized_accounts"`
	NotifyAccounts     []string `json:"notify_accounts"`
	MarketFee          float64  `json:"market_fee"`
	CreatedAtBlock     string   `json:"created_at_block"`
	CreatedAtTime      string   `json:"created_at_time"`
}

type SchemaFormat

type SchemaFormat struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type SchemaNameLogsProps

type SchemaNameLogsProps AssetsIDLogsProps

GetSchemaNameLogs response

type SchemaNameProps

type SchemaNameProps struct {
	Success   bool        `json:"success"`
	Data      SchemasData `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64       `json:"query_time"`
	Message   string      `json:"message,omitempty"` // error message will be here
}

GetSchemaName response

type SchemaNameStatsProps

type SchemaNameStatsProps struct {
	Success   bool        `json:"success"`
	Data      SchemaStats `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64       `json:"query_time"`
	Message   string      `json:"message,omitempty"` // error message will be here
}

GetSchemaNameStats response

type SchemaProps

type SchemaProps struct {
	Success   bool          `json:"success"`
	Data      []SchemasData `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64         `json:"query_time"`
	Message   string        `json:"message,omitempty"` // error message will be here
}

GetSchemas response

type SchemaStats

type SchemaStats struct {
	Assets    string
	Burned    string
	Templates string
}

type SchemasData

type SchemasData struct {
	Contract       string           `json:"contract"`
	SchemaName     string           `json:"schema_name"`
	Format         []SchemaFormat   `json:"format"`
	CreatedAtBlock string           `json:"created_at_block"`
	CreatedAtTime  string           `json:"created_at_time"`
	Collection     SchemaCollection `json:"collection"`
}

type Template

type Template struct {
	TemplateID     string `json:"template_id"`
	MaxSupply      string `json:"max_supply"`
	IsTransferable bool   `json:"is_transferable"`
	IsBurnable     bool   `json:"is_burnable"`
	IssuedSupply   string `json:"issued_supply"`
	ImmutableData  Data   `json:"immutable_data"`
	CreatedAtTime  string `json:"created_at_time"`
	CreatedAtBlock string `json:"created_at_block"`
}

type TemplateCollectionData

type TemplateCollectionData struct {
	CollectionName     string   `json:"collection_name"`
	Name               string   `json:"name"`
	Author             string   `json:"author"`
	AllowNotify        bool     `json:"allow_notify"`
	AuthorizedAccounts []string `json:"authorized_accounts"`
	NotifyAccounts     []string `json:"notify_accounts"`
	MarketFee          float64  `json:"market_fee"`
	CreatedAtBlock     string   `json:"created_at_block"`
	CreatedAtTime      string   `json:"created_at_time"`
}

type TemplateIDLogsProps

type TemplateIDLogsProps struct {
	Success   bool           `json:"success"`
	Data      []TemplateLogs `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64          `json:"query_time"`
	Message   string         `json:"message,omitempty"` // error message will be here
}

GetTemplateIDLogs response

type TemplateIDProps

type TemplateIDProps struct {
	Success   bool          `json:"success"`
	Data      TemplatesData `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64         `json:"query_time"`
	Message   string        `json:"message,omitempty"` // error message will be here
}

GetTemplateID response

type TemplateIDStatsProps

type TemplateIDStatsProps struct {
	Success   bool          `json:"success"`
	Data      TemplateStats `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64         `json:"query_time"`
	Message   string        `json:"message,omitempty"` // error message will be here
}

GetTemplateIDStats response

type TemplateLogs

type TemplateLogs AssetsIDLogsProps

type TemplateSchemaData

type TemplateSchemaData struct {
	SchemaName     string         `json:"schema_name"`
	Format         []SchemaFormat `json:"format"`
	CreatedAtBlock string         `json:"created_at_block"`
	CreatedAtTime  string         `json:"created_at_time"`
}

type TemplateStats

type TemplateStats struct {
	Assets string `json:"assets"`
	Burned string `json:"burned"`
}

type TemplatesData

type TemplatesData struct {
	Contract       string                 `json:"contract"`
	TemplateID     string                 `json:"template_id"`
	MaxSupply      string                 `json:"max_supply"`
	IsTransferable bool                   `json:"is_transferable"`
	IsBurnable     bool                   `json:"is_burnable"`
	ImmutableData  MutableData            `json:"immutable_data"`
	CreatedAtTime  string                 `json:"created_at_time"`
	CreatedAtBlock string                 `json:"created_at_block"`
	Schema         TemplateSchemaData     `json:"schema"`
	Collection     TemplateCollectionData `json:"collection"`
}

type TemplatesProps

type TemplatesProps struct {
	Success   bool            `json:"success"`
	Data      []TemplatesData `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64           `json:"query_time"`
	Message   string          `json:"message,omitempty"` // error message will be here
}

GetTemplates response

type TransfersData

type TransfersData struct {
	Contract       string            `json:"contract"`
	TransferID     string            `json:"transfer_id"`
	SenderName     string            `json:"sender_name"`
	RecipientName  string            `json:"recipient_name"`
	Memo           string            `json:"memo"`
	Assets         []AssetsDataProps `json:"assets"`
	CreatedAtBlock string            `json:"created_at_block"`
	CreatedAtTime  string            `json:"created_at_time"`
}

type TransfersProps

type TransfersProps struct {
	Success   bool            `json:"success"`
	Data      []TransfersData `json:"data,omitempty"` // if error from api, this is omitted
	QueryTime int64           `json:"query_time"`
	Message   string          `json:"message,omitempty"` // error message will be here
}

type Type

type Type string

Directories

Path Synopsis
_example

Jump to

Keyboard shortcuts

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