Hive Developers logo

Hive Developer Portal

Methods:

Used to submit signed transactions to the chain plugin.

Also see: network_broadcast_api.broadcast_transaction

chain_api.push_transaction

Accepts a signed transaction and attempts to push it to the chain.

The response reports whether the transaction was accepted. If validation fails, success is false and error contains the failure detail.

Query Parameters JSON
{
  "ref_block_num": 0,
  "ref_block_prefix": 0,
  "expiration": "1970-01-01T00:00:00",
  "operations": [],
  "extensions": [],
  "signatures": []
}
Expected Response JSON
{
  "success": false,
  "error": "transaction validation error"
}
Example curl
curl -s --data '{"jsonrpc":"2.0", "method":"chain_api.push_transaction", "params":{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[{"type":"vote_operation","value":{"voter":"hiveio","author":"alice","permlink":"a-post-by-alice","weight":10000}}],"extensions":[],"signatures":[]}, "id":1}' https://api.hive.blog