API

Dc Auto Top SDK

Quick tip

If you are looking for a quick start guide, check out the Getting Started guide. We also have some react examples here.

Instructions

close_auto_top_off_v0

Accounts

NameMutabilitySignerDocs
authorityimmutno
auto_top_offimmutno
queue_authorityimmutno
task_queue_authorityimmutno
rent_refundimmutno
task_queueimmutno
next_taskimmutno
next_pyth_taskimmutno
tuktuk_programimmutno
system_programimmutno

Args

NameTypeDocs

initialize_auto_top_off_v0

Accounts

NameMutabilitySignerDocs
payerimmutno
authorityimmutno
auto_top_offimmutno
daoimmutno
data_creditsimmutno
dc_mintimmutno
hnt_mintimmutno
delegated_data_creditsimmutno
dc_accountimmutno
hnt_accountimmutno
sub_daoimmutno
task_queueimmutno
circuit_breakerimmutno
queue_authorityimmutno
system_programimmutno
associated_token_programimmutno
token_programimmutno

Args

NameTypeDocs
args[object Object]

schedule_task

Accounts

NameMutabilitySignerDocs
payerimmutno
auto_top_offimmutno
next_taskimmutnoOnly allow one task to be scheduled at a time
queue_authorityimmutno
task_queue_authorityimmutno
task_queueimmutno
taskimmutno
pyth_taskimmutno
tuktuk_programimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

top_off_v0

Accounts

NameMutabilitySignerDocs
auto_top_offimmutno
task_queueimmutno
next_taskimmutno
delegated_data_creditsimmutno
data_creditsimmutno
dc_mintimmutno
hnt_mintimmutno
daoimmutno
sub_daoimmutno
from_accountimmutno
from_hnt_accountimmutno
hnt_price_oracleimmutno
escrow_accountimmutno
circuit_breakerimmutno
associated_token_programimmutno
token_programimmutno
system_programimmutno
circuit_breaker_programimmutno
data_credits_programimmutno

Args

NameTypeDocs

update_auto_top_off_v0

Accounts

NameMutabilitySignerDocs
authorityimmutno
payerimmutno
auto_top_offimmutno
queue_authorityimmutno
task_queue_authorityimmutno
task_queueimmutno
next_taskimmutno
next_pyth_taskimmutno
new_taskimmutno
new_pyth_taskimmutno
tuktuk_programimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

Accounts

AutoTopOffV0

undefined

DaoV0

undefined

DataCreditsV0

undefined

DelegatedDataCreditsV0

undefined

MintWindowedCircuitBreakerV0

undefined

SubDaoV0

undefined

TaskQueueAuthorityV0

undefined

TaskQueueV0

undefined

TaskV0

undefined

Types

AutoTopOffV0

FieldType
authoritypubkey
data_creditspubkey
task_queuepubkey
sub_daopubkey
next_taskpubkey
next_pyth_taskpubkey
delegated_data_creditspubkey
dc_mintpubkey
hnt_mintpubkey
daopubkey
hnt_price_oraclepubkey
hnt_accountpubkey
dc_accountpubkey
escrow_accountpubkey
circuit_breakerpubkey
bumpu8
queue_authority_bumpu8
thresholdu64
schedulestring

CompiledInstructionV0

FieldType
program_id_indexu8
accountsbytes
databytes

CompiledTransactionV0

FieldType
num_rw_signersu8
num_ro_signersu8
num_rwu8
accountspubkey
instructions[object Object]
signer_seedsbytes

DaoV0

FieldType
hnt_mintpubkey
dc_mintpubkey
authoritypubkey
registrarpubkey
hst_poolpubkey
net_emissions_capu64
num_sub_daosu32
emission_schedule[object Object]
hst_emission_schedule[object Object]
bump_seedu8
rewards_escrowpubkey
delegator_poolpubkey
delegator_rewards_percentu64
proposal_namespacepubkey
recent_proposals[object Object]

DataCreditsV0

FieldType
dc_mintpubkey
hnt_mintpubkey
authoritypubkey
hnt_price_oraclepubkey
data_credits_bumpu8
account_payerpubkey
account_payer_bumpu8

DelegatedDataCreditsV0

FieldType
data_creditspubkey
sub_daopubkey
escrow_accountpubkey
router_keystring
bumpu8

EmissionScheduleItem

FieldType
start_unix_timei64
emissions_per_epochu64

InitializeAutoTopOffArgsV0

FieldType
schedulestring
thresholdu64
router_keystring

MintWindowedCircuitBreakerV0

FieldType
mintpubkey
authoritypubkey
mint_authoritypubkey
config[object Object]
last_window[object Object]
bump_seedu8

PercentItem

FieldType
start_unix_timei64
percentu8

RecentProposal

FieldType
proposalpubkey
tsi64

RunTaskReturnV0

FieldType
tasks[object Object]
accountspubkey

ScheduleTaskArgsV0

FieldType
task_idu16
pyth_task_idu16

SubDaoV0

FieldType
daopubkey
dnt_mintpubkey
treasurypubkey
rewards_escrowpubkey
delegator_poolpubkey
vehnt_delegatedu128
vehnt_last_calculated_tsi64
vehnt_fall_rateu128
authoritypubkey
_deprecated_active_device_aggregatorpubkey
dc_burn_authoritypubkey
onboarding_dc_feeu64
emission_schedule[object Object]
bump_seedu8
registrarpubkey
_deprecated_delegator_rewards_percentu64
onboarding_data_only_dc_feeu64
dc_onboarding_fees_paidu64
active_device_authoritypubkey

TaskQueueAuthorityV0

FieldType
task_queuepubkey
queue_authoritypubkey
bump_seedu8

TaskQueueV0

FieldType
tuktuk_configpubkey
idu32
update_authoritypubkey
reservedpubkey
min_crank_rewardu64
uncollected_protocol_feesu64
capacityu16
created_ati64
updated_ati64
bump_seedu8
task_bitmapbytes
namestring
lookup_tablespubkey
num_queue_authoritiesu16
stale_task_ageu32

TaskReturnV0

FieldType
trigger[object Object]
transaction[object Object]
crank_rewardu64
free_tasksu8
descriptionstring

TaskV0

FieldType
task_queuepubkey
rent_amountu64
crank_rewardu64
idu16
trigger[object Object]
rent_refundpubkey
transaction[object Object]
queued_ati64
bump_seedu8
free_tasksu8
descriptionstring

ThresholdType

VariantFields
Percent
Absolute

TransactionSourceV0

VariantFields
CompiledV0undefined: undefined
RemoteV0url: string, signer: pubkey

TriggerV0

VariantFields
Now
Timestampundefined: undefined

UpdateAutoTopOffArgsV0

FieldType
new_task_idu16
new_pyth_task_idu16
schedulestring

WindowV0

FieldType
last_aggregated_valueu64
last_unix_timestampi64

WindowedCircuitBreakerConfigV0

FieldType
window_size_secondsu64
threshold_type[object Object]
thresholdu64
Previous