Skip to content

RestApis NewTransaction

Davide Miceli edited this page Jan 28, 2019 · 2 revisions

REST APIs - New transaction

Propose a new transaction as new block to be validated by other peers.

Endpoint

POST /api/block/propose

URL Params

None

Data Params

Field Optional Type Description
data no string Transaction data (a json or a simple string)

Success Response

true

Sample Call

curl -X POST http://<peer-host>/api/block/propose -H "Content-Type: application/json" --data-binary '{"data": "Some block data"}' --compressed