Constructor for the PublicApiClient object.
The configuration settings for this client.
Protected
compactCompacts bytes payload per operation.
The operation data.
The operation type id.
The expire period.
The compacted bytes payload.
Retrieves data about a list of addresses, such as their balances and block creation details.
An array of addresses to query.
A promise that resolves to an array of address information.
Get blockclique details by period and thread.
The slot as an ISlot.
A promise which resolves in the blockclique details.
Show data about a block (content, finality ...).
The block ids as an array of strings.
A promise which resolves in the block data.
The blocks are stored in the node cache. After a certain time (depending of the network activity), the blocks are removed from the cache and the node will not be able to return the block data. The corresponding api parameter is 'max_discarded_blocks'. More information can be found here: https://docs.massa.net/en/latest/testnet/all-config.html
Retrieves the data entries at both the latest final and active executed slots.
An array of objects containing address and key data.
A promise that resolves to an array of datastore entries.
returned values could be easily converted into string if needed using e.g.: bytesToStr(scStorageValue[0].final_value)
Show info about a list of endorsements.
The endorsement ids as an array of strings.
A promise which resolves in the endorsement data.
Get graph interval.
The graph interval values in ms as an IGetGraphInterval.
A promise which resolves in the graph interval.
Retrieves the node's status.
A promise that resolves to the node's status information.
The returned information includes:
Retrieves data about a list of operations.
An array of operation IDs to query.
A promise that resolves to an array of operation data.
Protected
getProtected
getRetrieves a list of active stakers and their roll counts for the current cycle.
A promise that resolves to an array of staking addresses and their roll counts.
Protected
sendSends a post JSON rpc request to the node.
The rpc method to call.
The parameters to pass to the rpc method.
A promise that resolves as the result of the rpc method.
An error if the rpc method returns an error.
Set new providers as IProvider.
The new providers to set as an array of IProvider.
Will throw an error if no public providers are included in the given array of providers.
Will throw an error if no private providers are included in the given array of providers.
Generated using TypeDoc
Represents a PublicApiClient object.
See