Skip to main content

Submit transaction

It submit a transaction. Depending of transaction type will return different kinds of responses:

  • For a NewElection transaction, response will be the newElectionId
  • For a Vote transaction, response will be the voteID

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}.

Request Body required

Base64 payload string containing transaction data and signature

  • payload string
Responses

Return blockchain response. response could differ depending of transaction type.


Schema
  • code integer
  • hash string
  • response base64
Loading...

Resources

Guides
Soon

Tutorials
Soon

Copyright © 2024 Vocdoni, Inc. All rights reserved.