# Generated by Scrape::ApiDefinitionsJob: 2019-10-08 17:22:36 UTC
# See: https://git.io/vx5CY
---
- name: Account history API
  description: Used to lookup account history information. **These AppBase API methods are still under development and subject to change.**
  methods:
    - api_method: account_history_api.get_account_history
      purpose: |
        Returns a history of all operations for a given account.
        
        Also see: [Paginated API Methods]({{ '/tutorials-recipes/paginated-api-methods#account_history_apiget_account_history' | relative_url }})
      parameter_json: {"account":"","start":"18446744073709551615","limit":1000}
      expected_response_json: {"history":[]}
      curl_examples:
        - '{"jsonrpc":"2.0", "method":"account_history_api.get_account_history", "params":{"account":"steemit", "start":1000, "limit":1000}, "id":1}'
        - '{"jsonrpc":"2.0", "method":"account_history_api.get_account_history", "params":{"account":"steemit", "start":-1, "limit":10000}, "id":1}'
      expected_curl_responses:
        - Could not find API account_history_api
        - Could not find API account_history_api
    - api_method: account_history_api.get_ops_in_block
      purpose: Returns all operations contained in a block.
      parameter_json: {"block_num":0,"only_virtual":false}
      expected_response_json: {"ops":[]}
      curl_examples:
        - '{"jsonrpc":"2.0", "method":"account_history_api.get_ops_in_block", "params":{"block_num":1,"only_virtual":false}, "id":1}'
        - '{"jsonrpc":"2.0", "method":"account_history_api.get_ops_in_block", "params":{"block_num":5443322,"only_virtual":true}, "id":1}'
      expected_curl_responses:
        - Could not find API account_history_api
        - Could not find API account_history_api
    - api_method: account_history_api.get_transaction
      deprecated: true
      purpose: Returns the details of a transaction based on a transaction id.
      parameter_json: {"id":"0000000000000000000000000000000000000000"}
      expected_response_json: {"ref_block_num":0,"ref_block_prefix":0,"expiration":"1970-01-01T00:00:00","operations":[],"extensions":[],"signatures":[],"transaction_id":"0000000000000000000000000000000000000000","block_num":0,"transaction_num":0}
      curl_examples:
        - '{"jsonrpc":"2.0", "method":"account_history_api.get_transaction", "params":{"id":"6fde0190a97835ea6d9e651293e90c89911f933c"}, "id":1}'
      expected_curl_responses:
        - Could not find API account_history_api
    - api_method: account_history_api.enum_virtual_ops
      since: HF23
      purpose: 
      parameter_json: '{"block_range_begin":1,"block_range_end":2}'
      expected_response_json: '{"ops":[],"next_block_range_begin":0}'
