Documentation ¶
Index ¶
- func AccountNonce(id int, address string) []byte
- func ChainGetBlock(id int, hash string) []byte
- func ChainGetBlockHash(id int, blockNum int) []byte
- func ChainGetRuntimeVersion(id int, hash ...string) []byte
- func ChainSubscribeFinalizedHeads(id int) []byte
- func ChainSubscribeNewHead(id int) []byte
- func GetMetadataByHash(p websocket.WsConn, hash ...string) (string, error)
- func PowerOf(id int, address string) []byte
- func ReadKeysPaged(p websocket.WsConn, module, prefix string) (r []string, scale string, err error)
- func ReadStorage(p websocket.WsConn, module, prefix string, hash string, arg ...string) (r storage.StateStorage, err error)
- func ReadStorageByKey(p websocket.WsConn, key storageKey.StorageKey, hash string) (r storage.StateStorage, err error)
- func StateGetKeysPaged(id int, storageKey string) []byte
- func StateGetMetadata(id int, hash ...string) []byte
- func StateGetStorage(id int, storageKey string, hash string) []byte
- func StateQueryStorageAt(id int, key, start string) []byte
- func StateQuerystorage(id int, key, start, end string) []byte
- func StateSubscribeStorage(id int, storageKey []string) []byte
- func SystemChain(id int) []byte
- func SystemHealth(id int) []byte
- func SystemName(id int) []byte
- func SystemPaymentQueryInfo(id int, encodedExtrinsic string) []byte
- func SystemProperties(id int) []byte
- func SystemVersion(id int) []byte
- type Block
- type BlockResult
- type ChainNewHeadLog
- type ChainNewHeadResult
- type Error
- type HealthResult
- type JsonRpcParams
- type JsonRpcResult
- func (p *JsonRpcResult) ToAnyThing(r interface{}) error
- func (p *JsonRpcResult) ToBlock() *BlockResult
- func (p *JsonRpcResult) ToFloat64() float64
- func (p *JsonRpcResult) ToInt() uint64
- func (p *JsonRpcResult) ToInterfaces() ([]interface{}, error)
- func (p *JsonRpcResult) ToNewHead() *ChainNewHeadResult
- func (p *JsonRpcResult) ToPaymentQueryInfo() *PaymentQueryInfo
- func (p *JsonRpcResult) ToRuntimeVersion() *RuntimeVersion
- func (p *JsonRpcResult) ToStorage() (*StateStorageResult, int64)
- func (p *JsonRpcResult) ToString() (string, error)
- func (p *JsonRpcResult) ToSysHealth() *HealthResult
- type Param
- type PaymentQueryInfo
- type Properties
- type RuntimeVersion
- type StateStorageResult
- type SubParams
- type SystemTokenResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountNonce ¶
func ChainGetBlock ¶
func ChainGetBlockHash ¶
func ChainGetRuntimeVersion ¶
func ChainSubscribeNewHead ¶
func ReadKeysPaged ¶
func ReadStorage ¶
func ReadStorage(p websocket.WsConn, module, prefix string, hash string, arg ...string) (r storage.StateStorage, err error)
Read substrate storage
func ReadStorageByKey ¶
func ReadStorageByKey(p websocket.WsConn, key storageKey.StorageKey, hash string) (r storage.StateStorage, err error)
func StateGetKeysPaged ¶
func StateGetMetadata ¶
func StateQueryStorageAt ¶
Query storage entries (by key) starting at block hash given as the second parameter
key Vec<StorageKey>
func StateQuerystorage ¶
Query historical storage entries (by key) starting from a start block key Vec<StorageKey>
func StateSubscribeStorage ¶
func SystemChain ¶
func SystemHealth ¶
func SystemName ¶
func SystemPaymentQueryInfo ¶
func SystemProperties ¶
func SystemVersion ¶
Types ¶
type Block ¶
type Block struct { Extrinsics []string `json:"extrinsics"` Header ChainNewHeadResult `json:"header"` }
type BlockResult ¶
type ChainNewHeadLog ¶
type ChainNewHeadLog struct {
Logs []string `json:"logs"`
}
type ChainNewHeadResult ¶
type ChainNewHeadResult struct { ExtrinsicsRoot string `json:"extrinsicsRoot"` Number string `json:"number"` ParentHash string `json:"parentHash"` StateRoot string `json:"stateRoot"` Digest ChainNewHeadLog `json:"digest"` }
type HealthResult ¶
type JsonRpcParams ¶
type JsonRpcResult ¶
type JsonRpcResult struct { Id int `json:"id,omitempty"` JsonRpc string `json:"jsonrpc"` Result interface{} `json:"result,omitempty"` Params *SubParams `json:"params,omitempty"` Method string `json:"method,omitempty"` Error *Error `json:"error,omitempty"` }
func (*JsonRpcResult) ToAnyThing ¶
func (p *JsonRpcResult) ToAnyThing(r interface{}) error
func (*JsonRpcResult) ToBlock ¶
func (p *JsonRpcResult) ToBlock() *BlockResult
func (*JsonRpcResult) ToFloat64 ¶
func (p *JsonRpcResult) ToFloat64() float64
func (*JsonRpcResult) ToInt ¶
func (p *JsonRpcResult) ToInt() uint64
func (*JsonRpcResult) ToInterfaces ¶
func (p *JsonRpcResult) ToInterfaces() ([]interface{}, error)
func (*JsonRpcResult) ToNewHead ¶
func (p *JsonRpcResult) ToNewHead() *ChainNewHeadResult
func (*JsonRpcResult) ToPaymentQueryInfo ¶
func (p *JsonRpcResult) ToPaymentQueryInfo() *PaymentQueryInfo
func (*JsonRpcResult) ToRuntimeVersion ¶
func (p *JsonRpcResult) ToRuntimeVersion() *RuntimeVersion
func (*JsonRpcResult) ToStorage ¶
func (p *JsonRpcResult) ToStorage() (*StateStorageResult, int64)
func (*JsonRpcResult) ToString ¶
func (p *JsonRpcResult) ToString() (string, error)
func (*JsonRpcResult) ToSysHealth ¶
func (p *JsonRpcResult) ToSysHealth() *HealthResult
type PaymentQueryInfo ¶
type PaymentQueryInfo struct { Class string `json:"class"` PartialFee decimal.Decimal `json:"partialFee"` Weight int64 `json:"weight"` }
func GetPaymentQueryInfo ¶
func GetPaymentQueryInfo(p websocket.WsConn, encodedExtrinsic string) (paymentInfo *PaymentQueryInfo, err error)
type Properties ¶
type Properties struct { Ss58Format int `json:"ss58Format"` TokenDecimals int `json:"tokenDecimals"` TokenSymbol string `json:"tokenSymbol"` }
func GetSystemProperties ¶
func GetSystemProperties(p websocket.WsConn) (*Properties, error)
type RuntimeVersion ¶
type StateStorageResult ¶
type SystemTokenResult ¶
Click to show internal directories.
Click to hide internal directories.