# Steem Developer Portal

Allows querying of various Resource Credit metrics. See: RC Bandwidth System, 0.20.2 Release Notes, Developer Guide: Resource Credit System

- Since: HF20
- Working on mainnet
- Working on testnet

#### rc_api.find_rc_accounts

Returns the available resource credits of accounts. Parameters: `accounts:string array`

`accounts` (string) |
--- | ---
`"steemit"` | Query the available resource credits for the account named “steemit”.
`"alice"` | Query the available resource credits for the accounts named “alice” and “bob”.

##### Query Parameters JSON

    {"accounts": []}

##### Expected Response JSON

    {
      "rc_accounts": [
        {
          "account": "",
          "rc_manabar": {"current_mana": "0", "last_update_time": 0},
          "max_rc_creation_adjustment": {
            "amount": "0",
            "precision": 6,
            "nai": "@@000000037"
          },
          "max_rc": "0"
        }
      ]
    }

##### Example `curl`

    curl -s --data '{"jsonrpc":"2.0", "method":"rc_api.find_rc_accounts", "params":{"accounts":["steemit"]}, "id":1}' https://api.steemit.com

    curl -s --data '{"jsonrpc":"2.0", "method":"rc_api.find_rc_accounts", "params":{"accounts":["alice","bob"]}, "id":1}' https://api.steemit.com

- Since: HF20
- Working on mainnet
- Working on testnet

#### rc_api.get_resource_params

Work in progress. See: #2980

##### Query Parameters JSON

    {}

##### Expected Response JSON

    {
      "resource_names": [
        "resource_history_bytes",
        "resource_new_accounts",
        "resource_market_bytes",
        "resource_state_bytes",
        "resource_execution_time"
      ],
      "resource_params": {
        "resource_history_bytes": {
          "resource_dynamics_params": {
            "resource_unit": 1,
            "budget_per_time_unit": 347222,
            "pool_eq": "216404314004",
            "max_pool_size": "432808628007",
            "decay_params": {
              "decay_per_time_unit": 3613026481,
              "decay_per_time_unit_denom_shift": 51
            },
            "min_decay": 0
          },
          "price_curve_params": {
            "coeff_a": "12981647055416481792",
            "coeff_b": 1690658703,
            "shift": 49
          }
        },
        "resource_new_accounts": {
          "resource_dynamics_params": {
            "resource_unit": 10000,
            "budget_per_time_unit": 797,
            "pool_eq": 157691079,
            "max_pool_size": 157691079,
            "decay_params": {
              "decay_per_time_unit": 347321,
              "decay_per_time_unit_denom_shift": 36
            },
            "min_decay": 0
          },
          "price_curve_params": {
            "coeff_a": "16484671763857882971",
            "coeff_b": 1231961,
            "shift": 51
          }
        },
        "resource_market_bytes": {
          "resource_dynamics_params": {
            "resource_unit": 10,
            "budget_per_time_unit": 578704,
            "pool_eq": "16030041350",
            "max_pool_size": "32060082699",
            "decay_params": {
              "decay_per_time_unit": 2540365427,
              "decay_per_time_unit_denom_shift": 46
            },
            "min_decay": 0
          },
          "price_curve_params": {
            "coeff_a": "9231393461629499392",
            "coeff_b": 125234698,
            "shift": 53
          }
        },
        "resource_state_bytes": {
          "resource_dynamics_params": {
            "resource_unit": 1,
            "budget_per_time_unit": 231481481,
            "pool_eq": "144269542669147",
            "max_pool_size": "288539085338293",
            "decay_params": {
              "decay_per_time_unit": 3613026481,
              "decay_per_time_unit_denom_shift": 51
            },
            "min_decay": 0
          },
          "price_curve_params": {
            "coeff_a": "12981647055416481792",
            "coeff_b": "1127105802103",
            "shift": 49
          }
        },
        "resource_execution_time": {
          "resource_dynamics_params": {
            "resource_unit": 1,
            "budget_per_time_unit": 82191781,
            "pool_eq": "51225569123068",
            "max_pool_size": "102451138246135",
            "decay_params": {
              "decay_per_time_unit": 3613026481,
              "decay_per_time_unit_denom_shift": 51
            },
            "min_decay": 0
          },
          "price_curve_params": {
            "coeff_a": "12981647055416481792",
            "coeff_b": "400199758774",
            "shift": 49
          }
        }
      },
      "size_info": {
        "resource_state_bytes": {
          "authority_base_size": 40000,
          "authority_account_member_size": 180000,
          "authority_key_member_size": 350000,
          "account_object_base_size": 4800000,
          "account_authority_object_base_size": 400000,
          "account_recovery_request_object_base_size": 320000,
          "comment_object_base_size": 2010000,
          "comment_object_permlink_char_size": 10000,
          "comment_object_parent_permlink_char_size": 20000,
          "comment_object_beneficiaries_member_size": 180000,
          "comment_vote_object_base_size": 470000,
          "convert_request_object_base_size": 480000,
          "decline_voting_rights_request_object_base_size": 280000,
          "escrow_object_base_size": 1190000,
          "limit_order_object_base_size": 147440,
          "savings_withdraw_object_byte_size": 14656,
          "transaction_object_base_size": 6090,
          "transaction_object_byte_size": 174,
          "vesting_delegation_object_base_size": 600000,
          "vesting_delegation_expiration_object_base_size": 440000,
          "withdraw_vesting_route_object_base_size": 430000,
          "witness_object_base_size": 2660000,
          "witness_object_url_char_size": 10000,
          "witness_vote_object_base_size": 400000,
          "STATE_BYTES_SCALE": 10000
        },
        "resource_execution_time": {
          "account_create_operation_exec_time": 57700,
          "account_create_with_delegation_operation_exec_time": 57700,
          "account_update_operation_exec_time": 14000,
          "account_witness_proxy_operation_exec_time": 117000,
          "account_witness_vote_operation_exec_time": 23000,
          "cancel_transfer_from_savings_operation_exec_time": 11500,
          "change_recovery_account_operation_exec_time": 12000,
          "claim_account_operation_exec_time": 10000,
          "claim_reward_balance_operation_exec_time": 50300,
          "comment_operation_exec_time": 114100,
          "comment_options_operation_exec_time": 13200,
          "convert_operation_exec_time": 15700,
          "create_claimed_account_operation_exec_time": 57700,
          "custom_operation_exec_time": 228000,
          "custom_json_operation_exec_time": 228000,
          "custom_binary_operation_exec_time": 228000,
          "decline_voting_rights_operation_exec_time": 5300,
          "delegate_vesting_shares_operation_exec_time": 19900,
          "delete_comment_operation_exec_time": 51100,
          "escrow_approve_operation_exec_time": 9900,
          "escrow_dispute_operation_exec_time": 11500,
          "escrow_release_operation_exec_time": 17200,
          "escrow_transfer_operation_exec_time": 19100,
          "feed_publish_operation_exec_time": 6200,
          "limit_order_cancel_operation_exec_time": 9600,
          "limit_order_create_operation_exec_time": 31700,
          "limit_order_create2_operation_exec_time": 31700,
          "request_account_recovery_operation_exec_time": 54400,
          "set_withdraw_vesting_route_operation_exec_time": 17900,
          "transfer_from_savings_operation_exec_time": 17500,
          "transfer_operation_exec_time": 9600,
          "transfer_to_savings_operation_exec_time": 6400,
          "transfer_to_vesting_operation_exec_time": 44400,
          "vote_operation_exec_time": 26500,
          "withdraw_vesting_operation_exec_time": 10400,
          "witness_set_properties_operation_exec_time": 9500,
          "witness_update_operation_exec_time": 9500
        }
      }
    }

##### Example `curl`

    curl -s --data '{"jsonrpc":"2.0", "method":"rc_api.get_resource_params", "id":1}' https://api.steemit.com

- Since: HF20
- Working on mainnet
- Working on testnet

#### rc_api.get_resource_pool

Work in progress. See: #2563, PR#2678

##### Query Parameters JSON

    {}

##### Expected Response JSON

    {
      "resource_pool": {
        "resource_history_bytes": {"pool": "200825644923"},
        "resource_new_accounts": {"pool": 37393465},
        "resource_market_bytes": {"pool": "15915722826"},
        "resource_state_bytes": {"pool": "132151641791507"},
        "resource_execution_time": {"pool": "47739958648192"}
      }
    }

##### Example `curl`

    curl -s --data '{"jsonrpc":"2.0", "method":"rc_api.get_resource_pool", "id":1}' https://api.steemit.com