Pending Transactions
Pending Transaction Status
GET 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
Path Parameters
param | Type | Note |
---|---|---|
hash (required) | string | Hash of the pending transaction to fetch. |
200: OK
A successful pending transaction status request
Transaction Units
Remember that transaction units are in bones
. Read more
here
{
"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"
}
]
}
Submit a New Transaction
POST https://api.helium.io/v1/pending_transactions/:hash
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
Headers
param | Type | Note |
---|---|---|
Content-Type (optional) | string | application/json |
Body Parameters
param | Type | Note |
---|---|---|
txn (required) | string | A base64 encoded transaction. An exmple of the both of a post request:{ "txn": "QoWBCIe..."} |
200: OK
A successful pending transaction status request
{
"data": {
"hash": "Coy2WqcmCt6k8MgSq3hK0XW1Um5NtwHskoY1zwYADKE"
}
}