filecoin

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChainClient

func NewChainClient() blockchain.BlockChain

Types

type Filecoin

type Filecoin struct {
}

func (*Filecoin) EthSubscribe

func (e *Filecoin) EthSubscribe(host string, token string) (string, error)

func (*Filecoin) EthUnSubscribe

func (e *Filecoin) EthUnSubscribe(host string, token string) (string, error)

func (*Filecoin) GetTokenBalance

func (e *Filecoin) GetTokenBalance(host string, key string, contractAddress string, userAddress string) (map[string]interface{}, error)

func (*Filecoin) GetTokenBalanceByHttp

func (e *Filecoin) GetTokenBalanceByHttp(host string, token string, contractAddress string, userAddress string) (map[string]interface{}, error)

func (*Filecoin) SendRequestToChain

func (e *Filecoin) SendRequestToChain(host string, token string, query string) (string, error)

func (*Filecoin) SendRequestToChainByHttp

func (e *Filecoin) SendRequestToChainByHttp(host string, token string, query string) (string, error)

Jump to

Keyboard shortcuts

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