Documentation
¶
Index ¶
- Variables
- func GetAccount(name string, byLongestChain bool) (*rpcpb.Account, error)
- func GetBlockByHash(hash string, complete bool) (*rpcpb.BlockResponse, error)
- func GetBlockByNum(num int64, complete bool) (*rpcpb.BlockResponse, error)
- func GetContract(id string, byLongestChain bool) (*rpcpb.Contract, error)
- func GetTokenBalance(account, token string, byLongestChain bool) (*rpcpb.GetTokenBalanceResponse, error)
- func GetTxByHash(hash string) (*rpcpb.TransactionResponse, error)
- func GetTxReceiptByTxHash(hash string) (*rpcpb.TxReceipt, error)
- func InitConfig()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RPCAddress = "127.0.0.1:30002" PasswordKey = []byte("temp") BPRegisterPassword = "temp" )
Functions ¶
func GetBlockByHash ¶
func GetBlockByHash(hash string, complete bool) (*rpcpb.BlockResponse, error)
func GetBlockByNum ¶
func GetBlockByNum(num int64, complete bool) (*rpcpb.BlockResponse, error)
func GetTokenBalance ¶
func GetTokenBalance(account, token string, byLongestChain bool) (*rpcpb.GetTokenBalanceResponse, error)
func GetTxByHash ¶
func GetTxByHash(hash string) (*rpcpb.TransactionResponse, error)
func InitConfig ¶
func InitConfig()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.