# Hexboosting SDK

Quick tip

If you are looking for a quick start guide, check out the [Getting Started](https://hpl.helium.com/docs/learn/getting_started) guide. We also have some react examples [here](https://hpl.helium.com/docs/learn/react).

## Instructions

### boost\_v0

#### Accounts

| Name                     | Mutability | Signer | Docs |
|--------------------------|------------|--------|------|
| payer                    | immut      | no     |      |
| boost\_config            | immut      | no     |      |
| carrier                  | immut      | no     |      |
| hexboost\_authority      | immut      | no     |      |
| data\_credits            | immut      | no     |      |
| dc\_mint                | immut      | no     |      |
| payment\_account         | immut      | no     |      |
| boosted\_hex            | immut      | no     |      |
| system\_program         | immut      | no     |      |
| token\_program          | immut      | no     |      |
| associated\_token\_program | immut      | no     |      |
| data\_credits\_program  | immut      | no     |      |

#### Args

| Name | Type           | Docs |
|------|----------------|------|
| args | \[object Object\] |      |

### close\_boost\_v0

#### Accounts

| Name                     | Mutability | Signer | Docs |
|--------------------------|------------|--------|------|
| rent\_reclaim\_authority | immut      | no     |      |
| boost\_config            | immut      | no     |      |
| boosted\_hex            | immut      | no     |      |

#### Args

| Name | Type | Docs |
|------|------|------|

### close\_boost\_v1

#### Accounts

#### Args

| Name | Type | Docs |
|------|------|------|

### initialize\_boost\_config\_v0

#### Accounts

| Name                     | Mutability | Signer | Docs |
|--------------------------|------------|--------|------|
| payer                    | immut      | no     |      |
| sub\_dao                | immut      | no     |      |
| authority                | immut      | no     |      |
| rent\_reclaim\_authority | immut      | no     |      |
| start\_authority        | immut      | no     |      |
| price\_oracle           | immut      | no     |      |
| dc\_mint                | immut      | no     |      |
| boost\_config            | immut      | no     |      |
| system\_program         | immut      | no     |      |
| dao                      | immut      | no     |      |

#### Args

| Name | Type           | Docs |
|------|----------------|------|
| args | \[object Object\] |      |

### start\_boost\_v0

#### Accounts

| Name                     | Mutability | Signer | Docs |
|--------------------------|------------|--------|------|
| start\_authority        | immut      | no     |      |
| boost\_config            | immut      | no     |      |
| boosted\_hex            | immut      | no     |      |

#### Args

| Name | Type           | Docs |
|------|----------------|------|
| args | \[object Object\] |      |

### start\_boost\_v1

#### Accounts

#### Args

| Name | Type           | Docs |
|------|----------------|------|
| args | \[object Object\] |      |

### update\_boost\_config\_v0

#### Accounts

| Name                     | Mutability | Signer | Docs |
|--------------------------|------------|--------|------|
| sub\_dao                | immut      | no     |      |
| authority                | immut      | no     |      |
| boost\_config            | immut      | no     |      |

#### Args

| Name | Type           | Docs |
|------|----------------|------|
| args | \[object Object\] |      |

## Accounts

### BoostConfigV0

undefined

### BoostedHexV0

undefined

### BoostedHexV1

undefined

### CarrierV0

undefined

### DaoV0

undefined

### DataCreditsV0

undefined

### SubDaoV0

undefined

## Types

### BoostAmountV0

| Field  | Type |
|--------|------|
| period | u16  |
| amount | u8   |

### BoostArgsV0

| Field        | Type           |
|--------------|----------------|
| location     | u64            |
| version      | u32            |
| amounts      | \[object Object\] |
| device\_type | \[object Object\] |

### BoostConfigV0

| Field             | Type  |
|-------------------|-------|
| price\_oracle     | pubkey|
| payment\_mint     | pubkey|
| sub\_dao          | pubkey|
| rent\_reclaim\_authority | pubkey|
| boost\_price      | u64   |
| period\_length    | u32   |
| minimum\_periods  | u16   |
| bump\_seed        | u8    |
| start\_authority   | pubkey|
| dc\_mint          | pubkey|

### BoostedHexV0

| Field        | Type  |
|--------------|-------|
| boost\_config | pubkey|
| location     | u64   |
| start\_ts    | i64   |
| reserved     | \[object Object\] |
| bump\_seed   | u8    |
| boosts\_by\_period | bytes|
| version      | u32   |

### BoostedHexV1

| Field        | Type  |
|--------------|-------|
| device\_type | \[object Object\] |
| boost\_config | pubkey|
| version      | u32   |
| location     | u64   |
| start\_ts    | i64   |
| bump\_seed   | u8    |
| boosts\_by\_period | bytes|

### CarrierV0

| Field                  | Type  |
|------------------------|-------|
| sub\_dao              | pubkey|
| update\_authority      | pubkey|
| issuing\_authority     | pubkey|
| collection             | pubkey|
| escrow                 | pubkey|
| name                   | string|
| merkle\_tree          | pubkey|
| approved               | bool  |
| collection\_bump\_seed | u8   |
| bump\_seed            | u8    |
| hexboost\_authority    | pubkey|
| incentive\_escrow\_fund\_bps | u16 |

### DaoV0

| Field                  | Type  |
|------------------------|-------|
| hnt\_mint              | pubkey|
| dc\_mint               | pubkey|
| authority               | pubkey|
| registrar               | pubkey|
| hst\_pool              | pubkey|
| net\_emissions\_cap   | u64   |
| num\_sub\_daos        | u32   |
| emission\_schedule      | \[object Object\] |
| hst\_emission\_schedule | \[object Object\] |
| bump\_seed             | u8    |
| rewards\_escrow        | pubkey|
| delegator\_pool        | pubkey|
| delegator\_rewards\_percent | u64   |
| proposal\_namespace    | pubkey|
| recent\_proposals      | \[object Object\] |

### DataCreditsV0

| Field                  | Type  |
|------------------------|-------|
| dc\_mint               | pubkey|
| hnt\_mint              | pubkey|
| authority               | pubkey|
| hnt\_price\_oracle    | pubkey|
| data\_credits\_bump   | u8    |
| account\_payer         | pubkey|
| account\_payer\_bump   | u8    |

### DeviceTypeV0

| Variant      | Fields |
|--------------|--------|
| CbrsIndoor   |        |
| CbrsOutdoor  |        |
| WifiIndoor   |        |
| WifiOutdoor  |        |

### EmissionScheduleItem

| Field                     | Type  |
|---------------------------|-------|
| start\_unix\_time        | i64   |
| emissions\_per\_epoch    | u64   |

### InitializeBoostConfigArgsV0

| Field               | Type  |
|---------------------|-------|
| boost\_price        | u64   |
| period\_length      | u32   |
| minimum\_periods    | u16   |

### PercentItem

| Field                     | Type  |
|---------------------------|-------|
| start\_unix\_time        | i64   |
| percent                   | u8    |

### RecentProposal

| Field   | Type  |
|---------|-------|
| proposal | pubkey|
| ts      | i64   |

### StartBoostArgsV0

| Field     | Type  |
|-----------|-------|
| start\_ts | i64   |

### SubDaoV0

| Field                        | Type  |
|------------------------------|-------|
| dao                          | pubkey|
| dnt\_mint                   | pubkey|
| treasury                      | pubkey|
| rewards\_escrow             | pubkey|
| delegator\_pool             | pubkey|
| vehnt\_delegated            | u128  |
| vehnt\_last\_calculated\_ts | i64   |
| vehnt\_fall\_rate          | u128  |
| authority                    | pubkey|
| \_deprecated\_active\_device\_aggregator | pubkey |
| dc\_burn\_authority        | pubkey|
| onboarding\_dc\_fee       | u64   |
| emission\_schedule          | \[object Object\] |
| bump\_seed                  | u8    |
| registrar                    | pubkey|
| \_deprecated\_delegator\_rewards\_percent | u64 |
| onboarding\_data\_only\_dc\_fee | u64 |
| dc\_onboarding\_fees\_paid | u64 |
| active\_device\_authority   | pubkey|

### UpdateBoostConfigArgsV0

| Field                       | Type  |
|-----------------------------|-------|
| start\_authority            | pubkey|
| rent\_reclaim\_authority    | pubkey|
| boost\_price                | u64   |
| minimum\_periods            | u16   |
| price\_oracle               | pubkey|
| dc\_mint                    | pubkey|
