ethereum

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

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

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

func Init added in v1.1.0

func Init(coinType uint, api, rpc string) *Platform

func InitWithBlockbook added in v1.1.0

func InitWithBlockbook(coinType uint, blockbookApi, rpc string) *Platform

func InitWithCollection added in v1.1.14

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

func (*Platform) Coin added in v1.0.0

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

func (*Platform) CurrentBlockNumber added in v1.0.37

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

func (*Platform) GetBlockByNumber added in v1.0.37

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

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 (p *Platform) GetTokenListByAddress(address string) (types.TokenPage, error)

func (*Platform) GetTokenTxsByAddress added in v1.1.0

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

func (*Platform) GetTxsByAddress added in v1.1.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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