Constructor for the PublicApiClient object.
The configuration settings for this client.
Protected
compactCompacts bytes payload per operation.
The compacted bytes payload.
The operation data.
The operation type id.
The expire period.
Retrieves data about a list of addresses, such as their balances and block creation details.
A promise that resolves to an array of address information.
An array of addresses to query.
Get blockclique details by period and thread.
A promise which resolves in the blockclique details.
The slot as an ISlot.
Show data about a block (content, finality ...).
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
A promise which resolves in the block data.
The block ids as an array of strings.
Retrieves the data entries at both the latest final and active executed slots.
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)
An array of objects containing address and key data.
Show info about a list of endorsements.
A promise which resolves in the endorsement data.
The endorsement ids as an array of strings.
Get graph interval.
A promise which resolves in the graph interval.
The graph interval values in ms as an IGetGraphInterval.
Retrieves the node's status.
The returned information includes:
A promise that resolves to the node's status information.
Retrieves data about a list of operations.
A promise that resolves to an array of operation data.
An array of operation IDs to query.
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.
An error if the rpc method returns an error.
A promise that resolves as the result of the rpc method.
The rpc method to call.
The parameters to pass to the rpc method.
Set new providers as 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.
The new providers to set as an array of IProvider.
Generated using TypeDoc
Represents a PublicApiClient object.
See