Accounts

get
List Accounts

https://api.helium.io/v1/accounts
Retrieve the current set of known accounts. The result is paged. A cursor field is present if more results are available. Note: The cursor for accounts is valid for a limited time. If you receive a 400 http response code for a cursor based request, you will need to start fetching accounts from the beginning of the list.
Request
Response
Request
Query Parameters
cursor
optional
string
Cursor for the page of accounts to fetch
Response
200: OK
Cake successfully retrieved.
{ "name": "Cake's name", "recipe": "Cake's recipe name", "cake": "Binary cake"}
404: Not Found
Could not find a cake matching this query.
{ "message": "Ain't no cake like that."}

get
Account for Address

https://api.helium.io/v1/accounts/:address
Retrieve a specific account record. The account details for a record include additional speculative nonces that indicate what the expected nonce for the account is for a specific balance. Any transactions affecting the given balance type should use an adjusted speculative nonce for that balance type. For example, when constructing a payment transaction, get the speculative_nonce field for the source account and use speculative_nonce + 1 for the new transaction nonce. Currently only the speculative_nonce is supported. It indicates the expected nonce for the account
Request
Response
Request
Path Parameters
address
required
string
Account B58 address to fetch details for
Response
200: OK
{
"data": {
"address": "1122ZQigQfeeyfSmH2i4KM4XMQHouBqK4LsTp33ppP3W2Knqh8gY",
"balance": 0,
"block": 311833,
"dc_balance": 100000000000000,
"dc_nonce": 0,
"nonce": 0,
"sec_balance": 0,
"sec_nonce": 0,
"speculative_nonce": 0
}
}

get
Hotspots for Account

https://api.helium.io/v1/accounts/:address/hotspots
Fetches hotspots owned by a given account address. The list of returned hotspots is paged. If a cursor field is present more results are available. Note: The cursor for accounts is valid for a limited time. If you receive a 400 http response code for a cursor based request, you will need to start fetching accounts from the beginning of the list.
Request
Response
Request
Path Parameters
address
required
string
Account B58 address to fetch hotspots for
Query Parameters
cursor
optional
string
Cursor for the next page of hotspots to fetch
Response
200: OK
The hotspot list for an account
{
"data": [
{
"address": "1182nyT3oXZPMztMSww4mzaaQXGXd5T7JwDfEth6obSCwwxxfsB",
"block": 311958,
"geocode": {
"long_city": "Cleveland",
"long_country": "United States",
"long_state": "Ohio",
"long_street": "West 32nd Street",
"short_city": "Cleveland",
"short_country": "US",
"short_state": "OH",
"short_street": "W 32nd St"
},
"lat": 41.480133219396784,
"lng": -81.70707772367822,
"location": "8c2ab38f19a43ff",
"name": "sneaky-violet-penguin",
"owner": "13GCcF7oGb6waFBzYDMmydmXx4vNDUZGX4LE3QUh8eSBG53s5bx",
"score": 0.988006591796875,
"score_update_height": 311925
}
]

get
Pending Transactions for Account

https://api.helium.io/v1/accounts/:address/pending_transactions
Fetches the outstanding transactions for the given account. See Pending Transactions for details. The list of returned pending transactions is paged. If a cursor field is present more results are available.
Request
Response
Request
Path Parameters
address
required
string
Account B58 address to fetch pending transactions for
Query Parameters
cursor
optional
string
Cursor for the next page of transactions to fetch
Response
200: OK
A single pending transaction for a given account
{
"data": [
{
"created_at": "2020-04-30T18:13:17.411141Z",
"failed_reason": "",
"hash": "IUXgVfnYPlv_Br3Rhng6bKTaLb_AzX9DC3E9NGJhAKs",
"status": "pending",
"txn": {
"fee": 0,
"nonce": 6,
"payer": "13C8mAv3M3SUQ1ZgREHsGxabcsHtDCkmkJLp9sGimqfWT4GRf9W",
"payments": [
{
"amount": 2,
"payee": "13C8mAv3M3SUQ1ZgREHsGxabcsHtDCkmkJLp9sGimqfWT4GRf9W"
}
],
"signature": "TcB6zhMf6_ImaMyuTbWRd33W-hlzCwxxZtyIeJRQwUTvHN00V1U4Jn7ooyNHjFAoBgvxBDN2VmQ5Fez0OQoICA"
},
"type": "payment_v2",
"updated_at": "2020-04-30T18:47:19.960477Z"
}
]
}

‚Äč