Retreives run time options for producer node
{ }
{- "max_transaction_time": 200,
- "max_irreversible_block_age": -1,
- "produce_time_offset_us": -100000,
- "last_block_time_offset_us": -200000,
- "max_scheduled_transaction_time_per_block_ms": 100,
- "incoming_defer_ratio": "1.00000000000000000",
- "greylist_limit": 1000
}
Update run time options for producer node
required | object Defines the run time options to set for the producer | ||||||||||||||
|
{- "options": {
- "max_transaction_time": 100,
- "max_irreversible_block_age": -1,
- "produce_time_offset_us": -100000,
- "last_block_time_offset_us": -200000,
- "max_scheduled_transaction_time_per_block_ms": 100,
- "subjective_cpu_leeway_us": 10,
- "incoming_defer_ratio": 1
}
}
{- "result": "ok"
}
Adds accounts to grey list for producer node
required | object | ||||
|
{- "accounts": [
- "alice",
- "bob"
]
}
null
Removes accounts from greylist for producer node.At least one account is required.
required | object | ||||
|
{- "accounts": [
- "alice"
]
}
{- "result": "ok"
}
Retrieves the whitelist and blacklist for producer node. A JSON object containing whitelist and blacklist information.
{ }
{- "actor_whitelist": [
- "bob"
], - "actor_blacklist": [ ],
- "contract_whitelist": [ ],
- "contract_blacklist": [ ],
- "action_blacklist": [ ],
- "key_blacklist": [ ]
}
Sets the white list and black list for producer node
required | object Defines the actor whitelist and blacklist, the contract whitelist and blacklist, the action blacklist and key blacklist | ||||||||||||
|
{- "actor_whitelist": [
- "bob"
], - "actor_blacklist": [ ],
- "contract_whitelist": [ ],
- "contract_blacklist": [ ],
- "action_blacklist": [ ],
- "key_blacklist": [ ]
}
{- "result": "ok"
}
Submits a request to automatically generate snapshots according to a schedule specified with given parameters. If request body is empty, schedules immediate snapshot generation. Returns error when unable to accept schedule.
block_spacing | integer Generate snapshot every block_spacing blocks |
start_block_num | integer Block number at which schedule starts |
end_block_num | integer Block number at which schedule ends |
snapshot_description | string Description of the snapshot |
{- "block_spacing": 0,
- "start_block_num": 5102,
- "end_block_num": 15102,
- "snapshot_description": "Daily snapshot"
}
{- "snapshot_request_id": 0,
- "block_spacing": 0,
- "start_block_num": 5102,
- "end_block_num": 15102,
- "snapshot_description": "Daily snapshot"
}
Removes snapshot request identified by id. Returns error if the referenced snapshot request does not exist.
snapshot_request_id | integer The unique ID of the snapshot request to remove. |
{- "snapshot_request_id": 0
}
{- "snapshot_request_id": 0,
- "block_spacing": 0,
- "start_block_num": 5102,
- "end_block_num": 15102,
- "snapshot_description": "Daily snapshot"
}
curl -X POST "http://localhost:8887/v1/producer/get_snapshot_requests" \ -H "Content-Type: application/json"
{- "snapshot_requests": [
- {
- "snapshot_request_id": 0,
- "block_spacing": 0,
- "start_block_num": 5102,
- "end_block_num": 15102,
- "snapshot_description": "Daily snapshot",
- "pending_snapshots": [
- {
- "head_block_id": "string",
- "head_block_num": 5102,
- "head_block_time": "2020-11-16T00:00:00.000",
- "version": 6,
- "snapshot_name": "/home/me/nodes/node-name/snapshots/snapshot-0000999f99999f9f999f99f99ff9999f999f9fff99ff99ffff9f9f9fff9f9999.bin"
}
]
}
]
}
Retreives the integrity hash for producer node
{ }
{- "head_block_id": "0005857b77cc98941c6caa90fa8a083d2b1f4416ac015a107e04ed06774cce94",
- "integrity_hash": "ac2a27f3b40ff252c2450341d2e4f8dbc1f83949103b83d8569c4292b265b224"
}
Schedule protocol feature activation for producer node
required | object | ||
|
{- "schedule": {
- "protocol_features_to_activate": [
- "ABCDEF123456..."
]
}
}
null
Retreives supported protocol features for producer node
required | object Defines filters based on which to return the supported protocol features | ||||
|
{- "params": {
- "exclude_disabled": false,
- "exclude_unactivatable": false
}
}
[- "string"
]
Retrieves accounts with ram corrections.
lower_bound | integer lowest account key |
upper_bound | integer highest account key |
limit | integer Default: 10 number of rows to scan |
reverse | boolean Default: false direction of search |
{- "lower_bound": 0,
- "upper_bound": 0,
- "limit": 10,
- "reverse": false
}
{- "rows": [
- "string"
], - "more": [
- "string"
]
}
Get Unapplied Transactions.
limit | integer Default: 100 limit number of transactions to return |
lower_bound | string (Sha256) ^[0-9A-Fa-f]{64}$ |
time_limit_ms | integer Default: "http-max-response-time-ms" |
{- "limit": 100,
- "lower_bound": "string",
- "time_limit_ms": 10
}
{- "size": 12428,
- "incoming_size": 4475,
- "trxs": [
- {
- "trx_id": "string",
- "expiration": "2022-09-17T16:30:16",
- "trx_type": "aborted",
- "first_auth": "jkbsg.wam",
- "first_receiver": "m.federation",
- "first_action": "mine",
- "total_actions": 1,
- "billed_cpu_time_us": 504,
- "size": 934
}
], - "more": "string"
}