Pending Transactions

get
Pending Transaction Status

https://api.helium.io/v1/pending_transactions/:hash
Fetches the status for a given pending transaction hash. Multiple transactions for the same hash may be returned.
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-07-29T00:44:13.578098Z",
"type": "payment_v2",
"txn": {
"type": "payment_v2",
"payments": [
{
"payee": "13FkKYnwHPoa6F7K23jJ7j2WNg9cMPsznJ7i4c9ysCwLoS8vx3E",
"amount": 100000000
}
],
"payer": "14h5MCATzJAB88gGBph8YtPM9539FdyBnMdTt7sYxg4Ts1D1aW3",
"nonce": 7,
"hash": "q7pnrm2LvPoZKclF4f2BB6AmcnD0SORECgq9VbNLir4",
"fee": 35000
},
"status": "pending",
"hash": "q7pnrm2LvPoZKclF4f2BB6AmcnD0SORECgq9VbNLir4",
"failed_reason": "",
"created_at": "2020-07-29T00:44:11.516601Z"
}]
}

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