API

Tuktuk Dca 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

check_repay_v0

Accounts

NameMutabilitySignerDocs
dcaimmutno
next_taskimmutno
input_accountimmutno
rent_refundimmutno
destination_token_accountimmutno
input_price_oracleimmutno
output_price_oracleimmutno
token_programimmutno

Args

NameTypeDocs
args[object Object]

close_dca_v0

Accounts

NameMutabilitySignerDocs
authorityimmutno
dcaimmutno
input_mintimmutno
input_accountimmutno
authority_input_accountimmutno
queue_authorityimmutno
task_queue_authorityimmutno
rent_refundimmutno
task_queueimmutno
next_taskimmutno
tuktuk_programimmutno
token_programimmutno
system_programimmutno
associated_token_programimmutno

Args

NameTypeDocs

initialize_dca_nested_v0

Accounts

NameMutabilitySignerDocs
coreimmutno
taskimmutno

Args

NameTypeDocs
args[object Object]

initialize_dca_v0

Accounts

NameMutabilitySignerDocs
coreimmutno
queue_authorityimmutno
taskimmutno
task_queue_authorityimmutno
tuktuk_programimmutno

Args

NameTypeDocs
args[object Object]

lend_v0

Accounts

NameMutabilitySignerDocs
dcaimmutno
input_accountimmutno
destination_token_accountimmutno
lend_destinationimmutno
next_taskimmutno
token_programimmutno
instruction_sysvarimmutnothe supplied Sysvar could be anything else.

Args

NameTypeDocs

Accounts

DcaV0

undefined

PriceUpdateV2

undefined

TaskQueueAuthorityV0

undefined

TaskV0

undefined

Types

CheckRepayArgsV0

FieldType

CompiledInstructionV0

FieldType
program_id_indexu8
accountsbytes
databytes

CompiledTransactionV0

FieldType
num_rw_signersu8
num_ro_signersu8
num_rwu8
accountspubkey
instructions[object Object]
signer_seedsbytes

DcaV0

FieldType
authoritypubkey
input_price_oraclepubkey
output_price_oraclepubkey
input_mintpubkey
output_mintpubkey
input_accountpubkey
destination_walletpubkey
destination_token_accountpubkey
pre_swap_destination_balanceu64
swap_input_amountu64
swap_amount_per_orderu64
interval_secondsu64
next_taskpubkey
task_queuepubkey
queued_ati64
indexu16
slippage_bps_from_oracleu16
initial_num_ordersu32
num_ordersu32
bumpu8
is_swappingu8
reserved[object Object]
dca_signerpubkey
dca_url[object Object]
rent_refundpubkey
crank_rewardu64

InitializeDcaArgsV0

FieldType
indexu16
num_ordersu32
swap_amount_per_orderu64
interval_secondsu64
slippage_bps_from_oracleu16
task_idu16
dca_signerpubkey
dca_urlstring
crank_rewardu64

PriceFeedMessage

FieldType
feed_id[object Object]
pricei64
confu64
exponenti32
publish_timei64
prev_publish_timei64
ema_pricei64
ema_confu64

PriceUpdateV2

FieldType
write_authoritypubkey
verification_level[object Object]
price_message[object Object]
posted_slotu64

RunTaskReturnV0

FieldType
tasks[object Object]
accountspubkey

TaskQueueAuthorityV0

FieldType
task_queuepubkey
queue_authoritypubkey
bump_seedu8

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

TransactionSourceV0

VariantFields
CompiledV0undefined: undefined
RemoteV0url: string, signer: pubkey

TriggerV0

VariantFields
Now
Timestampundefined: undefined

VerificationLevel

VariantFields
Partialnum_signatures: u8
Full
Previous