Documentation
¶
Index ¶
- type BlockTx
- type CoinInfoData
- type ErrMsg
- type Handler
- func (h *Handler) CallContract(ctx context.Context, contractAddress, params, blockNumber string) ([]byte, error)
- func (h *Handler) CheckTx(ctx context.Context, hash string) (*chainrpc.TxResult, error)
- func (h *Handler) GetBalance(ctx context.Context, address, contractAddress, blockNumber string) (string, error)
- func (h *Handler) GetHeight(ctx context.Context) (string, error)
- func (h *Handler) InquireChain(ctx context.Context, instruction, params string) (string, error)
- func (h *Handler) SendTx(ctx context.Context, signedHex string) (string, error)
- type RpcTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoinInfoData ¶
type CoinInfoData struct {
Decimals int `json:"decimals"`
Name string `json:"name"`
Symbol string `json:"symbol"`
}
types
type ErrMsg ¶
type ErrMsg struct {
Message string `json:"message"`
ErrorCode string `json:"error_code"`
VmErrorCode int `json:"vm_error_code"`
}
types
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CallContract ¶
func (*Handler) GetBalance ¶
func (*Handler) InquireChain ¶
type RpcTx ¶
type RpcTx struct {
ErrMsg
Version string `json:"version"`
Hash string `json:"hash"`
StateChangeHash string `json:"state_change_hash"`
EventRootHash string `json:"event_root_hash"`
GasUsed string `json:"gas_used"`
Success bool `json:"success"`
VmStatus string `json:"vm_status"`
AccumulatorRootHash string `json:"accumulator_root_hash"`
Sender string `json:"sender"`
SequenceNumber string `json:"sequence_number"`
MaxGasAmount string `json:"max_gas_amount"`
GasUnitPrice string `json:"gas_unit_price"`
ExpirationTimestampSecs string `json:"expiration_timestamp_secs"`
Payload struct {
Function string `json:"function"`
TypeArguments []interface{} `json:"type_arguments"`
Arguments []interface{} `json:"arguments"`
//TypeArguments []string `json:"type_arguments"`
//Arguments []string `json:"arguments"`
Type string `json:"type"`
} `json:"payload"`
Signature struct {
PublicKey interface{} `json:"public_key"`
Signature interface{} `json:"signature"`
Type string `json:"type"`
} `json:"signature"`
Timestamp string `json:"timestamp"`
Type string `json:"type"`
}
types
Click to show internal directories.
Click to hide internal directories.