Documentation
¶
Index ¶
- func GetJsonBody(body interface{}) (buf io.ReadWriter, err error)
- type BalanceChange
- type BasicChainHandler
- type BasicEvmTx
- type EvmLog
- type RateLimitError
- type Request
- func (r *Request) Delete(ctx context.Context, result interface{}, path string) error
- func (r *Request) Execute(ctx context.Context, method string, url string, body io.Reader, ...) error
- func (r *Request) ExecuteRaw(ctx context.Context, method string, url string, body io.Reader, ...) error
- func (r *Request) Get(ctx context.Context, result interface{}, path string, query url.Values) error
- func (r *Request) GetBase(path string) string
- func (r *Request) GetRaw(ctx context.Context, result *bytes.Buffer, path string, query url.Values) error
- func (r *Request) Patch(ctx context.Context, result interface{}, path string, body interface{}) error
- func (r *Request) Post(ctx context.Context, result interface{}, path string, body interface{}) error
- func (r *Request) PostWithOutEncoded(ctx context.Context, result interface{}, path string, body interface{}) error
- func (r *Request) PostWithPlain(ctx context.Context, result interface{}, path string, body io.Reader) error
- func (r *Request) PostWithXWWWFormUrlencoded(ctx context.Context, result interface{}, path string, body interface{}) error
- func (r *Request) SetBaseUrl(url string)
- func (r *Request) SetHeader(k, v string)
- type TokenInfo
- type Transfer
- type TxResult
- type TxTransfers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJsonBody ¶
func GetJsonBody(body interface{}) (buf io.ReadWriter, err error)
Types ¶
type BalanceChange ¶
type BasicChainHandler ¶
type BasicChainHandler interface {
GetHeight(ctx context.Context) (string, error)
GetBalance(ctx context.Context, address, contractAddress, blockNumber string) (string, error)
SendTx(ctx context.Context, signedHex string) (string, error)
CheckTx(ctx context.Context, hash string) (*TxResult, error)
CallContract(ctx context.Context, contractAddress, params, blockNumber string) ([]byte, error)
InquireChain(ctx context.Context, instruction, params string) (string, error)
}
type BasicEvmTx ¶
type EvmLog ¶
type RateLimitError ¶
func (*RateLimitError) Error ¶
func (e *RateLimitError) Error() string
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) ExecuteRaw ¶
func (*Request) PostWithOutEncoded ¶
func (*Request) PostWithPlain ¶
func (*Request) PostWithXWWWFormUrlencoded ¶
func (*Request) SetBaseUrl ¶
type TxTransfers ¶
type TxTransfers struct {
Hash string `json:"hash"`
Rejected bool `json:"rejected"`
ErrMsg string `json:"errMsg"`
Transfers []*Transfer `json:"transfers"`
BalanceChange []*BalanceChange `json:"balanceChange"`
}
Click to show internal directories.
Click to hide internal directories.