# Generated by Scrape::ApiDefinitionsJob: 2018-09-27 16:01:47 UTC
# See: https://git.io/vx5CY
---
- name: :debug_node_api
  description: |
    This plugin allows all sorts of creative "what-if" experiments with the chain.
    
    See: [debug_node_plugin.md](https://gitlab.syncad.com/hive/hive/-/blob/master/doc/devs/debug_node_plugin.md)
  methods:
  - api_method: debug_node_api.debug_generate_blocks
    purpose: Generate blocks locally.
    parameter_json: '{"debug_key":"","count":0,"skip":0,"miss_blocks":0,"edit_if_needed":true}'
    expected_response_json: '{"blocks":0}'
    client_docs:
      - '[hive-ruby](https://www.rubydoc.info/gems/hive-ruby/Hive/Api)'
  - api_method: debug_node_api.debug_generate_blocks_until
    purpose: Generate blocks locally until a specified head block time.  Can generate them sparsely.
    parameter_json: '{"debug_key":"","head_block_time":"1970-01-01T00:00:00","generate_sparsely":true}'
    expected_response_json: '{"blocks":0}'
    client_docs:
      - '[hive-ruby](https://www.rubydoc.info/gems/hive-ruby/Hive/Api)'
  - api_method: debug_node_api.debug_get_hardfork_property_object
    purpose: 
    parameter_json: "{}"
    expected_response_json: '{"id":0,"processed_hardforks":[],"last_hardfork":0,"current_hardfork_version":"0.0.0","next_hardfork":"0.0.0","next_hardfork_time":"1970-01-01T00:00:00"}'
    client_docs:
      - '[hive-ruby](https://www.rubydoc.info/gems/hive-ruby/Hive/Api)'
  - api_method: debug_node_api.debug_get_json_schema
    purpose: 
    parameter_json: "{}"
    expected_response_json: '{"schema":""}'
    client_docs:
      - '[hive-ruby](https://www.rubydoc.info/gems/hive-ruby/Hive/Api)'
  - api_method: debug_node_api.debug_get_witness_schedule
    purpose: 
    parameter_json: "{}"
    expected_response_json: '{"id":0,"current_virtual_time":"0","next_shuffle_block_num":21573344,"current_shuffled_witnesses":[],"num_scheduled_witnesses":192,"elected_weight":49,"timeshare_weight":73,"miner_weight":1,"witness_pay_normalization_factor":0,"median_props":{"account_creation_fee":{"amount":"0","precision":3,"nai":"@@000000021"},"maximum_block_size":131072,"hbd_interest_rate":1000,"account_subsidy_budget":797,"account_subsidy_decay":347321},"majority_version":"0.0.0","max_voted_witnesses":128,"max_miner_witnesses":131,"max_runner_witnesses":191,"hardfork_required_witnesses":4,"account_subsidy_rd":{"resource_unit":0,"budget_per_time_unit":0,"pool_eq":0,"max_pool_size":0,"decay_params":{"decay_per_time_unit":0,"decay_per_time_unit_denom_shift":0},"min_decay":0},"account_subsidy_witness_rd":{"resource_unit":0,"budget_per_time_unit":0,"pool_eq":0,"max_pool_size":0,"decay_params":{"decay_per_time_unit":0,"decay_per_time_unit_denom_shift":0},"min_decay":0},"min_witness_account_subsidy_decay":0}'
    client_docs:
      - '[hive-ruby](https://www.rubydoc.info/gems/hive-ruby/Hive/Api)'
  - api_method: debug_node_api.debug_has_hardfork
    purpose: 
    parameter_json: '{"hardfork_id":0}'
    expected_response_json: '{"has_hardfork":false}'
    client_docs:
      - '[hive-ruby](https://www.rubydoc.info/gems/hive-ruby/Hive/Api)'
  - api_method: debug_node_api.debug_pop_block
    purpose: Pop a block from the blockchain, returning it.
    parameter_json: "{}"
    expected_response_json: "{}"
    client_docs:
      - '[hive-ruby](https://www.rubydoc.info/gems/hive-ruby/Hive/Api)'
  - api_method: debug_node_api.debug_push_blocks
    purpose: Push blocks from existing database.
    parameter_json: '{"src_filename":"","count":0,"skip_validate_invariants":false}'
    expected_response_json: '{"blocks":0}'
    client_docs:
      - '[hive-ruby](https://www.rubydoc.info/gems/hive-ruby/Hive/Api)'
  - api_method: debug_node_api.debug_set_hardfork
    purpose: 
    parameter_json: '{"hardfork_id":0}'
    expected_response_json: "{}"
    client_docs:
      - '[hive-ruby](https://www.rubydoc.info/gems/hive-ruby/Hive/Api)'
