Documentation
¶
Index ¶
- Constants
- 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) GetTransfersByHash(ctx context.Context, hash string, confirmation uint64, withInternal bool) (*chainrpc.TxTransfers, 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 RpcBlock
- type RpcBlockBody
- type RpcBlockHeader
- type RpcInternalTx
- type RpcLog
- type RpcReceipt
- type RpcTransaction
Constants ¶
View Source
const ( ERC20TransferEvent = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" SignatureTransferMethod = "a9059cbb" SignatureBalanceOf = "70a08231" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CallContract ¶
func (*Handler) GetBalance ¶
func (*Handler) GetTransfersByHash ¶
func (*Handler) InquireChain ¶
type RpcBlock ¶
type RpcBlock struct {
RpcBlockHeader `json:"blockHeader"`
RpcBlockBody `json:"blockBody"`
}
type RpcBlockBody ¶
type RpcBlockBody struct {
Transactions []RpcTransaction `json:"transactions"`
}
type RpcBlockHeader ¶
type RpcInternalTx ¶
type RpcReceipt ¶
type RpcTransaction ¶
type RpcTransaction struct {
Hash string `json:"hash"`
BlockNumber string `json:"blockNumber"`
From string `json:"from"`
To string `json:"to"`
Nonce string `json:"nonce"`
GasPrice string `json:"gasPrice"`
GasLimit string `json:"gas"`
Value string `json:"value"`
Payload string `json:"input"`
BlockHash string `json:"blockHash,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.