Discover Packages
github.com/CrossChainLabs/near-api-go
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 modules, 2 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
near-api-go
NEAR API GO is a client library that interacts with NEAR Protocol via RPC.
Expand ▾
Collapse ▴
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.