Documentation ¶
Index ¶
- func NormalizeCollectible(c collection.Collectible, coinIndex uint) types.Collectible
- func NormalizeCollectiblePage(collectibles []collection.Collectible, coinIndex uint) (page types.CollectiblePage)
- func NormalizeCollection(c collection.Collection, coinIndex uint, owner string) types.Collection
- func NormalizeCollections(collections []collection.Collection, coinIndex uint, owner string) (page types.CollectionPage)
- type EthereumClient
- type Platform
- func (p *Platform) Coin() coin.Coin
- func (p *Platform) CurrentBlockNumber() (int64, error)
- func (p *Platform) GetBlockByNumber(num int64) (*types.Block, error)
- func (p *Platform) GetCollectibles(owner, collectibleID string) (types.CollectiblePage, error)
- func (p *Platform) GetCollections(owner string) (types.CollectionPage, error)
- func (p *Platform) GetTokenListByAddress(address string) (types.TokenPage, error)
- func (p *Platform) GetTokenTxsByAddress(address string, token string) (types.TxPage, error)
- func (p *Platform) GetTxsByAddress(address string) (types.TxPage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeCollectible ¶ added in v1.0.37
func NormalizeCollectible(c collection.Collectible, coinIndex uint) types.Collectible
func NormalizeCollectiblePage ¶ added in v1.0.37
func NormalizeCollectiblePage(collectibles []collection.Collectible, coinIndex uint) (page types.CollectiblePage)
func NormalizeCollection ¶ added in v1.0.37
func NormalizeCollection(c collection.Collection, coinIndex uint, owner string) types.Collection
func NormalizeCollections ¶ added in v1.1.0
func NormalizeCollections(collections []collection.Collection, coinIndex uint, owner string) (page types.CollectionPage)
Types ¶
type EthereumClient ¶ added in v1.1.0
type EthereumClient interface { GetTransactions(address string, coinIndex uint) (types.TxPage, error) GetTokenTxs(address, token string, coinIndex uint) (types.TxPage, error) GetTokenList(address string, coinIndex uint) (types.TokenPage, error) GetCurrentBlockNumber() (int64, error) GetBlockByNumber(num int64, coinIndex uint) (*types.Block, error) }
type Platform ¶ added in v1.0.0
func InitWithBlockbook ¶ added in v1.1.0
func InitWithCollection ¶ added in v1.1.14
func (*Platform) CurrentBlockNumber ¶ added in v1.0.37
func (*Platform) GetBlockByNumber ¶ added in v1.0.37
func (*Platform) GetCollectibles ¶ added in v1.0.37
func (p *Platform) GetCollectibles(owner, collectibleID string) (types.CollectiblePage, error)
func (*Platform) GetCollections ¶ added in v1.0.37
func (p *Platform) GetCollections(owner string) (types.CollectionPage, error)
func (*Platform) GetTokenListByAddress ¶ added in v1.0.37
func (*Platform) GetTokenTxsByAddress ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.