History Api Plugin

❗️

Deprecation Notice

The history_plugin that the history_api_plugin depends upon is deprecated and will no longer be maintained. Please use the state_history_plugin instead.

Description

The history_api_plugin exposes functionality from the history_plugin to the RPC API interface managed by the http_plugin, providing read-only access to blockchain data.

It provides four RPC API endpoints:

  • get_actions
  • get_transaction
  • get_key_accounts
  • get_controlled_accounts

📘

More Info

See HISTORY section of RPC API.

The four actions listed above are used by the following arisecli commands (matching order):

  • get actions
  • get transaction
  • get accounts
  • get servants

Usage

# config.ini
plugin = arisen::history_api_plugin
# command-line
aos ... --plugin arisen::history_api_plugin

Options

None

Dependencies

  • **history_plugin
  • chain_plugin
  • http_plugin**

Load Dependency Examples

# config.ini
plugin = arisen::history_plugin
[options]
plugin = arisen::chain_plugin
[options]
plugin = arisen::http_plugin
[options]
# command-line
aos ... --plugin arisen::history_plugin [options]  \
           --plugin arisen::chain_plugin [operations] [options]  \
           --plugin arisen::http_plugin [options]