跳到主要内容
版本:3.1

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

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

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

Usage

# config.ini
plugin = eosio::history_api_plugin
# command-line
nodeos ... --plugin eosio::history_api_plugin

Options

None

Dependencies

Load Dependency Examples

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