Documentation
¶
Index ¶
- Constants
- type BlockData
- 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) GetAddressFee(ctx context.Context, address string) (wallettron.FreeGas, 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 Tx
Constants ¶
View Source
const SignatureTransferMethod = "a9059cbb"
SignatureTransferMethod is the TRC20 transfer(address,uint256) method selector. Defined locally because it lives in package evm of chain-rpc, which is not cleanly importable here.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockData ¶
type BlockData struct {
Number uint64 `json:"number"`
TxTrieRoot string `json:"txTrieRoot"`
WitnessAddress string `json:"witness_address"`
ParentHash string `json:"parentHash"`
Version int `json:"version"`
Timestamp int64 `json:"timestamp"`
}
types
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CallContract ¶
func (*Handler) GetAddressFee ¶
func (*Handler) GetBalance ¶
func (*Handler) GetTransfersByHash ¶
func (*Handler) InquireChain ¶
Click to show internal directories.
Click to hide internal directories.