Documentation ¶
Index ¶
- Constants
- func EncodeKeyHashToAddress(keyHash []byte) string
- func EncodePublicKeyToAddress(hexString string) string
- func Normalize(srcTx *Tx) (tx blockatlas.Tx)
- type BlockTxRpc
- type BlockTxs
- type ChainInfo
- type Client
- type HashesResponse
- type Platform
- func (p *Platform) CanHandle(name string) bool
- func (p *Platform) Coin() coin.Coin
- func (p *Platform) CurrentBlockNumber() (int64, error)
- func (p *Platform) GetBlockByNumber(num int64) (*blockatlas.Block, error)
- func (p *Platform) GetTxsByAddress(address string) (blockatlas.TxPage, error)
- func (p *Platform) Lookup(coins []uint64, name string) ([]blockatlas.Resolved, error)
- type RpcClient
- type Tx
- type TxRPC
- type TxReceipt
- type ZNSResponse
Constants ¶
View Source
const HRP string = "zil"
Variables ¶
This section is empty.
Functions ¶
func EncodeKeyHashToAddress ¶ added in v1.0.37
func EncodePublicKeyToAddress ¶ added in v1.0.37
func Normalize ¶
func Normalize(srcTx *Tx) (tx blockatlas.Tx)
Types ¶
type BlockTxRpc ¶ added in v1.1.0
type BlockTxRpc struct { JsonRpc string `json:"jsonrpc"` Error *blockatlas.RpcError `json:"error,omitempty"` Result BlockTxs `json:"result,omitempty"` Id string `json:"id,omitempty"` }
type Client ¶
type Client struct {
blockatlas.Request
}
func (*Client) GetTxsOfAddress ¶
func (*Client) LookupName ¶ added in v1.0.37
func (c *Client) LookupName(name string) (response ZNSResponse, err error)
type HashesResponse ¶ added in v1.1.6
type HashesResponse struct { ID int `json:"id"` Jsonrpc string `json:"jsonrpc"` Result [][]string `json:"result"` }
func (HashesResponse) Txs ¶ added in v1.1.6
func (h HashesResponse) Txs() []string
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶ added in v1.0.37
func (*Platform) GetBlockByNumber ¶ added in v1.0.37
func (p *Platform) GetBlockByNumber(num int64) (*blockatlas.Block, error)
func (*Platform) GetTxsByAddress ¶
func (p *Platform) GetTxsByAddress(address string) (blockatlas.TxPage, error)
type RpcClient ¶ added in v1.0.37
type RpcClient struct {
blockatlas.Request
}
func (*RpcClient) GetBlockByNumber ¶ added in v1.1.0
func (*RpcClient) GetBlockchainInfo ¶ added in v1.0.37
type Tx ¶
type Tx struct { Hash string `json:"hash"` BlockHeight uint64 `json:"blockHeight"` From string `json:"from"` To string `json:"to"` Value string `json:"value"` Fee string `json:"fee"` Timestamp int64 `json:"timestamp"` Signature string `json:"signature"` Nonce interface{} `json:"nonce"` ReceiptSuccess bool `json:"receiptSuccess"` }
func (Tx) NonceValue ¶ added in v1.0.37
type TxRPC ¶ added in v1.0.37
type TxRPC struct { ID string `json:"ID"` Amount string `json:"amount"` GasLimit string `json:"gasLimit"` GasPrice string `json:"gasPrice"` Nonce string `json:"nonce"` Receipt TxReceipt `json:"receipt"` SenderPubKey string `json:"senderPubKey"` Signature string `json:"signature"` ToAddr string `json:"toAddr"` Version string `json:"version"` }
type ZNSResponse ¶ added in v1.0.37
Click to show internal directories.
Click to hide internal directories.