Documentation ¶
Index ¶
- func CreateSignatureAndNonce(fnName string, paramJSON []byte, privKey *rsa.PrivateKey) (nonce string, signature []byte)
- func CreateTxn(fnName []byte, param []byte, nonce []byte, signature []byte, nodeID []byte) (interface{}, error)
- func GeneratePublicKey(publicKey *rsa.PublicKey) ([]byte, error)
- func GetEnv(key, defaultValue string) string
- func GetPrivateKeyFromString(privK string) *rsa.PrivateKey
- func Query(fnName []byte, param []byte) (interface{}, error)
- func RandStringRunes(n int) string
- type ResponseQuery
- type ResponseStatus
- type ResponseTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSignatureAndNonce ¶
func GetPrivateKeyFromString ¶
func GetPrivateKeyFromString(privK string) *rsa.PrivateKey
func RandStringRunes ¶
Types ¶
type ResponseQuery ¶
type ResponseStatus ¶
type ResponseStatus struct { Jsonrpc string `json:"jsonrpc"` ID int `json:"id"` Result struct { NodeInfo struct { ProtocolVersion struct { P2P string `json:"p2p"` Block string `json:"block"` App string `json:"app"` } `json:"protocol_version"` ID string `json:"id"` ListenAddr string `json:"listen_addr"` Network string `json:"network"` Version string `json:"version"` Channels string `json:"channels"` Moniker string `json:"moniker"` Other struct { TxIndex string `json:"tx_index"` RPCAddress string `json:"rpc_address"` } `json:"other"` } `json:"node_info"` SyncInfo struct { LatestBlockHash string `json:"latest_block_hash"` LatestAppHash string `json:"latest_app_hash"` LatestBlockHeight string `json:"latest_block_height"` LatestBlockTime time.Time `json:"latest_block_time"` EarliestBlockHash string `json:"earliest_block_hash"` EarliestAppHash string `json:"earliest_app_hash"` EarliestBlockHeight string `json:"earliest_block_height"` EarliestBlockTime time.Time `json:"earliest_block_time"` CatchingUp bool `json:"catching_up"` } `json:"sync_info"` ValidatorInfo struct { Address string `json:"address"` PubKey struct { Type string `json:"type"` Value string `json:"value"` } `json:"pub_key"` VotingPower string `json:"voting_power"` } `json:"validator_info"` } `json:"result"` }
func Status ¶
func Status() (*ResponseStatus, error)
type ResponseTx ¶
type ResponseTx struct { Jsonrpc string `json:"jsonrpc"` ID int `json:"id"` Result struct { CheckTx struct { Code int `json:"code"` Log string `json:"log"` } `json:"check_tx"` TxResult struct { Code int `json:"code"` Log string `json:"log"` Events []abcitypes.Event `json:"events"` } `json:"tx_result"` Hash string `json:"hash"` Height string `json:"height"` } `json:"result"` }
Click to show internal directories.
Click to hide internal directories.