ethereum

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectibleClient

type CollectibleClient interface {
	GetCollections(owner string, coinIndex uint) (types.CollectionPage, error)
	GetCollectibles(owner, collectionID string, coinIndex uint) (types.CollectiblePage, error)
}

type EthereumClient

type EthereumClient interface {
	GetTransactions(address string, coinIndex uint) (types.Txs, error)
	GetTokenTxs(address, token string, coinIndex uint) (types.Txs, error)
	GetTokenList(address string, coinIndex uint) ([]types.Token, error)
	GetCurrentBlockNumber() (int64, error)
	GetBlockByNumber(num int64, coinIndex uint) (*types.Block, error)
}

type Platform

type Platform struct {
	CoinIndex uint
	// contains filtered or unexported fields
}

func InitWithBlockbook

func InitWithBlockbook(coinType uint, blockbookApi string) *Platform

func InitWithBounce

func InitWithBounce(coinType uint, blockbookApi, collectionApi string) *Platform

func InitWithOpenSea

func InitWithOpenSea(coinType uint, blockbookApi, collectionApi, collectionKey string) *Platform

func (*Platform) Coin

func (p *Platform) Coin() coin.Coin

func (*Platform) CurrentBlockNumber

func (p *Platform) CurrentBlockNumber() (int64, error)

func (*Platform) GetBlockByNumber

func (p *Platform) GetBlockByNumber(num int64) (*types.Block, error)

func (*Platform) GetCollectibles

func (p *Platform) GetCollectibles(owner, collectionID string) (types.CollectiblePage, error)

func (*Platform) GetCollections

func (p *Platform) GetCollections(owner string) (types.CollectionPage, error)

func (*Platform) GetTokenListByAddress

func (p *Platform) GetTokenListByAddress(address string) ([]types.Token, error)

func (*Platform) GetTokenListIdsByAddress

func (p *Platform) GetTokenListIdsByAddress(address string) ([]string, error)

func (*Platform) GetTokenTxsByAddress

func (p *Platform) GetTokenTxsByAddress(address string, token string) (types.Txs, error)

func (*Platform) GetTxsByAddress

func (p *Platform) GetTxsByAddress(address string) (types.Txs, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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