zilliqa

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const HRP string = "zil"

Variables

This section is empty.

Functions

func EncodeKeyHashToAddress

func EncodeKeyHashToAddress(keyHash []byte) string

func EncodePublicKeyToAddress

func EncodePublicKeyToAddress(hexString string) string

func Normalize

func Normalize(srcTx *viewblock.Tx) (tx types.Tx)

func TxFromRpc

func TxFromRpc(t rpc.Tx, header rpc.BlockHeader) *viewblock.Tx

Types

type Platform

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

func Init

func Init(api, apiKey, rpcUrl 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) 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