Documentation ¶
Index ¶
- Constants
- func CreateTransaction(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
- func ExecuteScript(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
- func GetAccount(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
- func GetAccountBalance(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
- func GetAccountKeyByIndex(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
- func GetAccountKeys(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
- func GetBlockPayloadByID(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
- func GetBlocksByHeight(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
- func GetBlocksByIDs(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
- func GetCollectionByID(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
- func GetEvents(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
- func GetExecutionResultByID(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
- func GetExecutionResultsByBlockIDs(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
- func GetNetworkParameters(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
- func GetNodeVersionInfo(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
- func GetTransactionByID(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
- func GetTransactionResultByID(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
- func NewBlockProvider(backend access.API, options ...blockProviderOption) *blockProvider
Constants ¶
const BlockQueryParam = "block_ids"
const EventTypeQuery = "type"
Variables ¶
This section is empty.
Functions ¶
func CreateTransaction ¶
func CreateTransaction(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
CreateTransaction creates a new transaction from provided payload.
func ExecuteScript ¶
func ExecuteScript(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
ExecuteScript handler sends the script from the request to be executed.
func GetAccount ¶
func GetAccount(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
GetAccount handler retrieves account by address and returns the response
func GetAccountBalance ¶
func GetAccountBalance(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
GetAccountBalance handler retrieves an account balance by address and block height and returns the response
func GetAccountKeyByIndex ¶
func GetAccountKeyByIndex(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
GetAccountKeyByIndex handler retrieves an account key by address and index and returns the response
func GetAccountKeys ¶
func GetAccountKeys(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
GetAccountKeys handler retrieves an account keys by address and returns the response
func GetBlockPayloadByID ¶
func GetBlockPayloadByID(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
GetBlockPayloadByID gets block payload by ID
func GetBlocksByHeight ¶
func GetBlocksByHeight(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
GetBlocksByHeight gets blocks by height.
func GetBlocksByIDs ¶
func GetBlocksByIDs(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
GetBlocksByIDs gets blocks by provided ID or list of IDs.
func GetCollectionByID ¶
func GetCollectionByID(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
GetCollectionByID retrieves a collection by ID and builds a response
func GetExecutionResultByID ¶
func GetExecutionResultByID(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
GetExecutionResultByID gets execution result by the ID.
func GetExecutionResultsByBlockIDs ¶
func GetExecutionResultsByBlockIDs(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
GetExecutionResultsByBlockIDs gets Execution Result payload by block IDs.
func GetNetworkParameters ¶
func GetNetworkParameters(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
GetNetworkParameters returns network-wide parameters of the blockchain
func GetNodeVersionInfo ¶
func GetNodeVersionInfo(r *common.Request, backend access.API, _ models.LinkGenerator) (interface{}, error)
GetNodeVersionInfo returns node version information
func GetTransactionByID ¶
func GetTransactionByID(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
GetTransactionByID gets a transaction by requested ID.
func GetTransactionResultByID ¶
func GetTransactionResultByID(r *common.Request, backend access.API, link models.LinkGenerator) (interface{}, error)
GetTransactionResultByID retrieves transaction result by the transaction ID.
func NewBlockProvider ¶
Types ¶
This section is empty.