Documentation
¶
Index ¶
- Variables
- func ABCIQuery(path string, queryData interface{}) ([]byte, error)
- func QueryAddressIncentive(address string) ([]byte, error)
- func QueryAppConfig() ([]byte, error)
- func QueryBalance(udc uint32, address string) ([]byte, error)
- func QueryBlockIncentive(height string) ([]byte, error)
- func QueryDelegate(address string) ([]byte, error)
- func QueryDraft(draftID string) ([]byte, error)
- func QueryIncentive(height string, address string) ([]byte, error)
- func QueryParcel(parcelID string) ([]byte, error)
- func QueryRequest(buyer string, target string) ([]byte, error)
- func QueryStake(address string) ([]byte, error)
- func QueryStorage(storageID string) ([]byte, error)
- func QueryUsage(buyer string, target string) ([]byte, error)
- func QueryVote(draftID, address string) ([]byte, error)
- type ABCIQueryParams
- type ABCIQueryResponse
- type BroadcastParams
- type TmQueryResult
- type TmStatusResult
- type TmTxResult
- func BroadcastTx(tx []byte) (TmTxResult, error)
- func Cancel(target string, key keys.KeyEntry, fee, lastHeight string) (TmTxResult, error)
- func Close(storageID string, key keys.KeyEntry, fee, lastHeight string) (TmTxResult, error)
- func Delegate(to, amount string, key keys.KeyEntry, fee, lastHeight string) (TmTxResult, error)
- func Discard(target string, key keys.KeyEntry, fee, lastHeight string) (TmTxResult, error)
- func Grant(target, grantee, custody, extra string, key keys.KeyEntry, ...) (TmTxResult, error)
- func Propose(draftID, config, desc string, key keys.KeyEntry, fee, lastHeight string) (TmTxResult, error)
- func Register(target, custody, proxy, extra string, key keys.KeyEntry, ...) (TmTxResult, error)
- func Request(target, payment, extra string, key keys.KeyEntry, fee, lastHeight string) (TmTxResult, error)
- func Retract(amount string, key keys.KeyEntry, fee, lastHeight string) (TmTxResult, error)
- func Revoke(target, grantee string, key keys.KeyEntry, fee, lastHeight string) (TmTxResult, error)
- func Setup(storageID, url, regFee, hostFee string, key keys.KeyEntry, ...) (TmTxResult, error)
- func SignSendTx(txType string, payload interface{}, key keys.KeyEntry, fee, lastHeight string) (TmTxResult, error)
- func Stake(validator, amount string, key keys.KeyEntry, fee, lastHeight string) (TmTxResult, error)
- func Transfer(udc uint32, to, amount string, key keys.KeyEntry, fee, lastHeight string) (TmTxResult, error)
- func Vote(draftID string, approve bool, key keys.KeyEntry, fee, lastHeight string) (TmTxResult, error)
- func Withdraw(amount string, key keys.KeyEntry, fee, lastHeight string) (TmTxResult, error)
- type TxSig
- type TxToSend
- type TxToSign
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RpcRemote = "http://0.0.0.0:26657" DryRun = false AddressByteSize = 20 TxBroadcastOption string )
Functions ¶
func QueryAddressIncentive ¶ added in v1.2.0
func QueryAppConfig ¶ added in v1.3.0
func QueryBlockIncentive ¶ added in v1.2.0
func QueryDelegate ¶
func QueryDraft ¶ added in v1.4.1
func QueryIncentive ¶ added in v1.2.0
func QueryParcel ¶
func QueryStake ¶
func QueryStorage ¶ added in v1.4.1
Types ¶
type ABCIQueryParams ¶
type ABCIQueryResponse ¶
type BroadcastParams ¶
type BroadcastParams struct {
Tx []byte `json:"tx"`
}
type TmQueryResult ¶
type TmQueryResult struct {
Response ABCIQueryResponse `json:"response"`
}
XXX: Weired, but tendermint does this anyway
type TmStatusResult ¶
type TmStatusResult struct { NodeInfo json.RawMessage `json:"node_info"` SyncInfo json.RawMessage `json:"sync_info"` ValidatorInfo json.RawMessage `json:"validator_info"` }
func NodeStatus ¶
func NodeStatus() (TmStatusResult, error)
type TmTxResult ¶
type TmTxResult struct { CheckTx struct { Code int64 `json:"code,omitempty"` Info string `json:"info,omitempty"` } `json:"check_tx"` DeliverTx struct { Code int64 `json:"code,omitempty"` Info string `json:"info,omitempty"` } `json:"deliver_tx"` Hash string `json:"hash"` Height string `json:"height"` // number as a string }
func BroadcastTx ¶
func BroadcastTx(tx []byte) (TmTxResult, error)
func SignSendTx ¶
Click to show internal directories.
Click to hide internal directories.