Skip to content

chain_api.push_block ​

disabled

The chain_api plugin is defined in source but not enabled on public nodes; the namespace is not registered.

Purpose ​

Pushes a block to the node.

Parameters: block:object (a signed block); currently_syncing:bool (optional, defaults to false)

Returns success:bool and, on failure, an error:string.

Parameters ​

PARAMETERS
json
{
  "block": {},
  "currently_syncing": false
}

⚠ Defined in the steem source, but not enabled on public nodes.

Example ​

BASH
bash
# NOTE: this method is no longer served by public nodes
curl -s https://api.steemit.com \
  -H 'Content-Type: application/json' \
  --data-binary '{
    "jsonrpc": "2.0",
    "method": "chain_api.push_block",
    "params": {
      "block": {},
      "currently_syncing": false
    },
    "id": 1
  }'

Response ​

RESPONSE
json
{
  "success": true,
  "error": null
}

Expected curl responses ​

EXPECTED RESPONSES
text
Could not find API chain_api