Skip to main content

Producer API (1.0.0)

Download OpenAPI specification:Download

URL: https://wire.network License: MIT

pause

Pause producer node

Authorizations:
None
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
true

resume

Resume producer node

Authorizations:
None
Request Body schema: application/json
object

Resumes activity for producer

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
null

paused

Retreives paused status for producer node

Authorizations:
None
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
true

get_runtime_options

Retreives run time options for producer node

Authorizations:
None
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{
  • "max_transaction_time": 0,
  • "max_irreversible_block_age": 0,
  • "produce_time_offset_us": 0,
  • "last_block_time_offset_us": 0,
  • "max_scheduled_transaction_time_per_block_ms": 0,
  • "subjective_cpu_leeway_us": 0,
  • "incoming_defer_ratio": 0
}

update_runtime_options

Update run time options for producer node

Authorizations:
None
Request Body schema: application/json
required
object

Defines the run time options to set for the producer

max_transaction_time
integer

Max transaction time

max_irreversible_block_age
integer

Max irreversible block age

produce_time_offset_us
integer

Time offset

last_block_time_offset_us
integer

Last block time offset

max_scheduled_transaction_time_per_block_ms
integer

Max scheduled transaction time per block in ms

subjective_cpu_leeway_us
integer

Subjective CPU leeway

incoming_defer_ratio
integer

Incoming defer ration

Responses

Request samples

Content type
application/json
{
  • "options": {
    }
}

Response samples

Content type
application/json
null

get_greylist

Retreives the greylist for producer node

Authorizations:
None
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
[
  • "string"
]

add_greylist_accounts

Adds accounts to grey list for producer node

Authorizations:
None
Request Body schema: application/json
required
object
Array of NamePrivileged (string) or NameBasic (string) or NameBid (string) or NameCatchAll (string) (Name)

List of account names to add

Array
Any of
string (NamePrivileged) ^(sysio[\.][a-z1-5]{1,6})([a-j]{1})?$

String representation of privileged SYSIO name type

Responses

Request samples

Content type
application/json
{
  • "params": {
    }
}

Response samples

Content type
application/json
null

remove_greylist_accounts

Removes accounts from greylist for producer node

Authorizations:
None
Request Body schema: application/json
required
object
Array of NamePrivileged (string) or NameBasic (string) or NameBid (string) or NameCatchAll (string) (Name)

List of account names to remove

Array
Any of
string (NamePrivileged) ^(sysio[\.][a-z1-5]{1,6})([a-j]{1})?$

String representation of privileged SYSIO name type

Responses

Request samples

Content type
application/json
{
  • "params": {
    }
}

Response samples

Content type
application/json
[
  • "string"
]

get_whitelist_blacklist

Retreives the white list and black list for producer node

Authorizations:
None
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{
  • "actor_whitelist": [
    ],
  • "actor_blacklist": [
    ],
  • "contract_whitelist": [
    ],
  • "contract_blacklist": [
    ],
  • "action_blacklist": [
    ],
  • "key_blacklist": [
    ]
}

set_whitelist_blacklist

Sets the white list and black list for producer node

Authorizations:
None
Request Body schema: application/json
required
object

Defines the actor whitelist and blacklist, the contract whitelist and blacklist, the action blacklist and key blacklist

Array of NamePrivileged (string) or NameBasic (string) or NameBid (string) or NameCatchAll (string) (Name)
Array of NamePrivileged (string) or NameBasic (string) or NameBid (string) or NameCatchAll (string) (Name)
Array of NamePrivileged (string) or NameBasic (string) or NameBid (string) or NameCatchAll (string) (Name)
Array of NamePrivileged (string) or NameBasic (string) or NameBid (string) or NameCatchAll (string) (Name)
Array of NamePrivileged (string) or NameBasic (string) or NameBid (string) or NameCatchAll (string) (Name) [ items[^([a-z1-9]{1}[a-z1-9_]{0,30}[a-z1-9]{1})$] ]
key_blacklist
Array of strings (KeyType)
Items Enum: "uint64" "double"

Responses

Request samples

Content type
application/json
{
  • "params": {
    }
}

Response samples

Content type
application/json
null

create_snapshot

Creates a snapshot for producer node

Authorizations:
None
Request Body schema: application/json
required
object

Defines the snapshot to be created

snapshot_name
string

The name of the snapshot

head_block_id
string (Sha256) ^[0-9A-Fa-f]{64}$

Responses

Request samples

Content type
application/json
{
  • "next": {
    }
}

Response samples

Content type
application/json
null

get_integrity_hash

Retreives the integrity hash for producer node

Authorizations:
None
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{
  • "integrity_hash": "string",
  • "head_block_id": "string"
}

schedule_protocol_feature_activations

Schedule protocol feature activation for producer node

Authorizations:
None
Request Body schema: application/json
required
object
protocol_features_to_activate
Array of strings (Sha256) [^[0-9A-Fa-f]{64}$]

List of protocol features to activate

Responses

Request samples

Content type
application/json
{
  • "schedule": {
    }
}

Response samples

Content type
application/json
null

get_supported_protocol_features

Retreives supported protocol features for producer node

Authorizations:
None
Request Body schema: application/json
required
object

Defines filters based on which to return the supported protocol features

exclude_disabled
boolean

Exclude disabled protocol features

exclude_unactivatable
boolean

Exclude unactivatable protocol features

Responses

Request samples

Content type
application/json
{
  • "params": {
    }
}

Response samples

Content type
application/json
[
  • "string"
]