Pending Transactions

get
Pending Transaction Status

https://api.helium.io/v1/pending_transactions/:hash
Fetches the status for a given pending transaction hash.
Request
Response
Request
Path Parameters
hash
required
string
Hash of the pending transaction to fetch.
Response
200: OK
A successful pending transaction status request
{
"data": {
"updated_at": "2020-04-13T04:19:31.713044Z",
"status": "pending",
"hash": "Coy2WqcmCt6k8MgSq3hK0XW1Um5NtwHskoY1zwYADKE",
"failed_reason": "",
"created_at": "2020-04-13T04:19:23.105879Z"
}
}

post
Submit a New Transaction

https//api.helium.io/v1/pending_transactions
New transactions can be submitted to the blockchain by sending a pending transaction. The transaction has to be constructed using the protobuf form, encoded and then signed. The resulting signed transaction is then wrapped in a transaction wrapper which must be encoded and then submitted to this endpoint. If successful, the response will include a transaction hash that can be used to check for pending transaction status.
Request
Response
Request
Headers
Content-Type
optional
string
application/json
Body Parameters
txn
required
string
A base64 encoded transaction. An exmple of the both of a post request: { "txn": "QoWBCIe..."}
Response
200: OK
{
"data": {
"hash": "Coy2WqcmCt6k8MgSq3hK0XW1Um5NtwHskoY1zwYADKE"
}
}

‚Äč