API

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

initializeFanoutV0

Accounts

NameMutabilitySignerDocs
payermutyes
authorityimmutno
fanoutmutno
tokenAccountmutno
fanoutMintimmutno
collectionmutno
collectionAccountmutno
membershipMintimmutno
metadatamutno
masterEditionmutno
tokenProgramimmutno
tokenMetadataProgramimmutno
associatedTokenProgramimmutno
systemProgramimmutno
rentimmutno

Args

NameTypeDocs
argsInitializeFanoutArgsV0

stakeV0

Accounts

NameMutabilitySignerDocs
payermutyes
stakerimmutyes
recipientimmutno
fanoutmutno
membershipMintimmutno
tokenAccountimmutno
membershipCollectionimmutno
collectionMetadatamutno
collectionMasterEditionimmutno
fromAccountmutno
stakeAccountmutno
receiptAccountmutno
vouchermutno
mintmutno
metadatamutno
masterEditionmutno
tokenProgramimmutno
associatedTokenProgramimmutno
systemProgramimmutno
tokenMetadataProgramimmutno

Args

NameTypeDocs
argsStakeArgsV0

unstakeV0

Accounts

NameMutabilitySignerDocs
payermutyes
solDestinationmutno
vouchermutno
mintmutno
fanoutmutno
membershipMintimmutno
receiptAccountmutno
voucherAuthorityimmutyes
toAccountmutno
stakeAccountmutno
tokenProgramimmutno
associatedTokenProgramimmutno
systemProgramimmutno

Args

NameTypeDocs

distributeV0

Accounts

NameMutabilitySignerDocs
payermutyes
fanoutmutno
fanoutMintimmutno
tokenAccountmutno
ownerimmutno
toAccountmutno
vouchermutno
mintimmutno
receiptAccountimmutno
tokenProgramimmutno
associatedTokenProgramimmutno
systemProgramimmutno

Args

NameTypeDocs

Accounts

FanoutV0

FieldType
authoritypublicKey
tokenAccountpublicKey
fanoutMintpublicKey
membershipMintpublicKey
totalSharesu64
totalStakedSharesu64
membershipCollectionpublicKey
totalInflowu64
lastSnapshotAmountu64
namestring
bumpSeedu8

FanoutVoucherV0

FieldType
fanoutpublicKey
mintpublicKey
stakeAccountpublicKey
sharesu64
totalInflowu64
totalDistributedu64
totalDustu64
bumpSeedu8

Types

InitializeFanoutArgsV0

FieldType
namestring

StakeArgsV0

FieldType
amountu64
Previous