package
module
Version:
v0.0.0-...-14e1c4e
Opens a new window with list of versions in this module.
Published: Sep 14, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
¶
near-api-go
NEAR API GO is a client library that interacts with NEAR Protocol via RPC.
Documentation
¶
type Client struct {
URL string
}
Returns general status of current validator nodes.
type FunctionCallParams struct {
Request_type string `json:"request_type"`
Finality string `json:"finality"`
Account_id string `json:"account_id"`
Method_name string `json:"method_name"`
Args_base64 string `json:"args_base64"`
}
type FunctionCallResponse struct {
Result json.RawMessage `json:"result,omitempty"`
Error string `json:"error,omitempty"`
Logs []string `json:"logs,omitempty"`
BlockHeight int64 `json:"block_height,omitempty"`
BlockHash string `json:"block_hash,omitempty"`
}
type Request struct {
Version string `json:"jsonrpc,omitempty"`
Id string `json:"id,omitempty"`
Method string `json:"method,omitempty"`
Params json.RawMessage `json:"params,omitempty"`
}
type Response struct {
Version string `json:"jsonrpc,omitempty"`
Result json.RawMessage `json:"result,omitempty"`
Id string `json:"id,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.