Submit transaction
It submit a transaction. Depending of transaction type will return different kinds of responses:
- For a NewElection transaction,
response
will be thenewElectionId
- For a Vote transaction,
response
will be thevoteID
Once the transaction is mined on the Vochain you can use chain/transactions/reference/{hash}
to find the block height and its index on the block to get the transaction index using chain/transactions/{blockHeight}/{txIndex}
.
- application/json
Request Body required
Base64 payload string containing transaction data and signature
- payload string
Responses
- 200
Return blockchain response. response
could differ depending of transaction type.
- application/json
- Schema
- Example (from schema)
Schema
- code integer
- hash string
- response base64
{
"code": 0,
"hash": "string",
"response": "string"
}
Loading...
Was this helpful?