Documentation ¶
Index ¶
- func NewChainClient() blockchain.ChainConn
- func NewNFTClient() blockchain.NFT
- type PolygonPos
- func (e *PolygonPos) BalanceOf(host string, key string, contractAddress string, address string, ...) (string, error)
- func (e *PolygonPos) GetToken1155(host string, key string, contractAddress string, userAddress string) (map[string]interface{}, error)
- func (e *PolygonPos) GetToken20(host string, key string, contractAddress string, userAddress string) (map[string]interface{}, error)
- func (e *PolygonPos) GetToken20ByHttp(host string, token string, contractAddress string, userAddress string) (map[string]interface{}, error)
- func (e *PolygonPos) GetToken721(host string, key string, contractAddress string, userAddress string) (map[string]interface{}, error)
- func (e *PolygonPos) OwnerOf(host string, key string, contractAddress string, tokenId string, eip int64) (string, error)
- func (e *PolygonPos) SendRequestToChain(host string, token string, query string) (string, error)
- func (e *PolygonPos) SendRequestToChainByHttp(host string, token string, query string) (string, error)
- func (e *PolygonPos) Subscribe(host string, token string) (string, error)
- func (e *PolygonPos) TokenURI(host string, key string, contractAddress string, tokenId string, eip int64) (string, error)
- func (e *PolygonPos) TotalSupply(host string, key string, contractAddress string, eip int64) (string, error)
- func (e *PolygonPos) UnSubscribe(host string, token string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChainClient ¶
func NewChainClient() blockchain.ChainConn
func NewNFTClient ¶ added in v0.5.2
func NewNFTClient() blockchain.NFT
Types ¶
type PolygonPos ¶
type PolygonPos struct { }
func (*PolygonPos) GetToken1155 ¶ added in v0.5.1
func (*PolygonPos) GetToken20 ¶ added in v0.5.1
func (*PolygonPos) GetToken20ByHttp ¶ added in v0.5.1
func (*PolygonPos) GetToken721 ¶ added in v0.5.1
func (*PolygonPos) SendRequestToChain ¶
func (*PolygonPos) SendRequestToChainByHttp ¶
func (*PolygonPos) Subscribe ¶ added in v0.5.1
func (e *PolygonPos) Subscribe(host string, token string) (string, error)
func (*PolygonPos) TotalSupply ¶ added in v0.5.2
func (*PolygonPos) UnSubscribe ¶ added in v0.5.1
func (e *PolygonPos) UnSubscribe(host string, token string) (string, error)
Click to show internal directories.
Click to hide internal directories.