API

Lazy Distributor 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

initializeLazyDistributorV0

Accounts

NameMutabilitySignerDocs
payermutyes
lazyDistributormutno
rewardsMintmutno
rewardsEscrowmutno
circuitBreakermutno
systemProgramimmutno
associatedTokenProgramimmutno
circuitBreakerProgramimmutno
tokenProgramimmutno

Args

NameTypeDocs
argsInitializeLazyDistributorArgsV0

initializeRecipientV0

Accounts

NameMutabilitySignerDocs
payermutyes
lazyDistributorimmutno
recipientmutno
mintimmutno
targetMetadataimmutno
systemProgramimmutno

Args

NameTypeDocs

initializeCompressionRecipientV0

Accounts

NameMutabilitySignerDocs
payermutyes
lazyDistributorimmutno
recipientmutno
merkleTreeimmutno
ownerimmutno
delegateimmutno
compressionProgramimmutno
systemProgramimmutno

Args

NameTypeDocs
argsInitializeCompressionRecipientArgsV0

setCurrentRewardsV0

Accounts

NameMutabilitySignerDocs
payermutyes
lazyDistributorimmutno
recipientmutno
oracleimmutyes
systemProgramimmutno

Args

NameTypeDocs
argsSetCurrentRewardsArgsV0

distributeRewardsV0

Accounts

NameMutabilitySignerDocs
commonimmutno
recipientMintAccountimmutno

Args

NameTypeDocs

distributeCompressionRewardsV0

Accounts

NameMutabilitySignerDocs
commonimmutno
merkleTreeimmutno
compressionProgramimmutno

Args

NameTypeDocs
argsDistributeCompressionRewardsArgsV0

updateLazyDistributorV0

Accounts

NameMutabilitySignerDocs
lazyDistributormutno
rewardsMintimmutno
authorityimmutyes

Args

NameTypeDocs
argsUpdateLazyDistributorArgsV0

updateCompressionDestinationV0

Accounts

NameMutabilitySignerDocs
recipientmutno
ownerimmutyes
destinationimmutno
merkleTreeimmutno
compressionProgramimmutno

Args

NameTypeDocs
argsUpdateCompressionDestinationArgsV0

updateDestinationV0

Accounts

NameMutabilitySignerDocs
recipientmutno
ownerimmutyes
destinationimmutno
recipientMintAccountimmutno

Args

NameTypeDocs

distributeCustomDestinationV0

Accounts

NameMutabilitySignerDocs
commonimmutno

Args

NameTypeDocs

Accounts

LazyDistributorV0

FieldType
versionu16
rewardsMintpublicKey
rewardsEscrowpublicKey
authoritypublicKey
oraclesOracleConfigV0
bumpSeedu8
approverpublicKey

RecipientV0

FieldType
lazyDistributorpublicKey
assetpublicKey
totalRewardsu64
currentConfigVersionu16
currentRewards[object Object]
bumpSeedu8
reservedu64
destinationpublicKey

Types

WindowedCircuitBreakerConfigV0

FieldType
windowSizeSecondsu64
thresholdTypeThresholdType
thresholdu64

DistributeCompressionRewardsArgsV0

FieldType
dataHash[object Object]
creatorHash[object Object]
root[object Object]
indexu32

InitializeCompressionRecipientArgsV0

FieldType
dataHash[object Object]
creatorHash[object Object]
root[object Object]
indexu32

InitializeLazyDistributorArgsV0

FieldType
oraclesOracleConfigV0
authoritypublicKey
windowConfigWindowedCircuitBreakerConfigV0
approverpublicKey

SetCurrentRewardsArgsV0

FieldType
oracleIndexu16
currentRewardsu64

UpdateCompressionDestinationArgsV0

FieldType
dataHash[object Object]
creatorHash[object Object]
root[object Object]
indexu32

UpdateLazyDistributorArgsV0

FieldType
oracles[object Object]
authoritypublicKey
approver[object Object]

OracleConfigV0

FieldType
oraclepublicKey
urlstring

Creator

FieldType
addresspublicKey
verifiedbool
shareu8

Uses

FieldType
useMethodUseMethod
remainingu64
totalu64

Collection

FieldType
verifiedbool
keypublicKey

MetadataArgs

FieldType
namestring
symbolstring
uristring
sellerFeeBasisPointsu16
primarySaleHappenedbool
isMutablebool
editionNonceu8
tokenStandard[object Object]
collection[object Object]
uses[object Object]
tokenProgramVersionTokenProgramVersion
creatorsCreator

ThresholdType

VariantFields
Percent
Absolute

TokenProgramVersion

VariantFields
Original
Token2022

TokenStandard

VariantFields
NonFungible
FungibleAsset
Fungible
NonFungibleEdition

UseMethod

VariantFields
Burn
Multiple
Single
Previous