API

Mini Fanout 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_mini_fanout_v0

Accounts

NameMutabilitySignerDocs
ownerimmutno
mini_fanoutimmutno
queue_authorityimmutno
task_queue_authorityimmutno
rent_refundimmutno
task_queueimmutno
next_taskimmutno
tuktuk_programimmutno
system_programimmutno

Args

NameTypeDocs

distribute_v0

Accounts

NameMutabilitySignerDocs
mini_fanoutimmutno
task_queueimmutno
next_taskimmutno
token_accountimmutno
token_programimmutno

Args

NameTypeDocs

initialize_mini_fanout_v0

Accounts

NameMutabilitySignerDocs
payerimmutno
ownerimmutno
namespaceimmutnoThe namespace for the seeds
mini_fanoutimmutno
task_queueimmutno
rent_refundimmutno
mintimmutno
token_accountimmutno
queue_authorityimmutno
system_programimmutno
associated_token_programimmutno
token_programimmutno

Args

NameTypeDocs
args[object Object]

schedule_task_v0

Accounts

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

Args

NameTypeDocs
args[object Object]

update_mini_fanout_v0

Accounts

NameMutabilitySignerDocs
ownerimmutno
payerimmutno
mini_fanoutimmutno
queue_authorityimmutno
task_queue_authorityimmutno
task_queueimmutno
next_taskimmutno
new_taskimmutno
tuktuk_programimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

update_wallet_delegate_v0

Accounts

NameMutabilitySignerDocs
payerimmutno
walletimmutno
mini_fanoutimmutno
queue_authorityimmutno
task_queue_authorityimmutno
task_queueimmutno
next_taskimmutno
new_taskimmutno
tuktuk_programimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

Accounts

MiniFanoutV0

undefined

TaskQueueAuthorityV0

undefined

TaskQueueV0

undefined

TaskV0

undefined

Types

CompiledInstructionV0

FieldType
program_id_indexu8
accountsbytes
databytes

CompiledTransactionV0

FieldType
num_rw_signersu8
num_ro_signersu8
num_rwu8
accountspubkey
instructions[object Object]
signer_seedsbytes

InitializeMiniFanoutArgsV0

FieldType
schedulestring
shares[object Object]
seedbytes

MiniFanoutShareArgV0

FieldType
walletpubkey
share[object Object]

MiniFanoutShareV0

FieldType
walletpubkey
delegatepubkey
share[object Object]
total_dustu64
total_owedu64

MiniFanoutV0

FieldType
ownerpubkey
namespacepubkey
mintpubkey
token_accountpubkey
task_queuepubkey
next_taskpubkey
rent_refundpubkey
bumpu8
schedulestring
queue_authority_bumpu8
shares[object Object]
seedbytes

RunTaskReturnV0

FieldType
tasks[object Object]
accountspubkey

ScheduleTaskArgsV0

FieldType
task_idu16

Share

VariantFields
Shareamount: u32
Fixedamount: u64

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

TransactionSourceV0

VariantFields
CompiledV0undefined: undefined
RemoteV0url: string, signer: pubkey

TriggerV0

VariantFields
Now
Timestampundefined: undefined

UpdateMiniFanoutArgsV0

FieldType
new_task_idu16
shares[object Object]
schedulestring

UpdateWalletDelegateArgsV0

FieldType
indexu8
new_task_idu16
delegatepubkey
Previous