API

Data Credits 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

initializeDataCreditsV0

Accounts

NameMutabilitySignerDocs
dataCreditsmutno
hntPriceOracleimmutno
hntMintimmutno
circuitBreakermutno
dcMintmutno
mintAuthorityimmutyes
freezeAuthorityimmutyes
accountPayermutno
payermutyes
circuitBreakerProgramimmutno
tokenProgramimmutno
systemProgramimmutno

Args

NameTypeDocs
argsInitializeDataCreditsArgsV0

mintDataCreditsV0

Accounts

NameMutabilitySignerDocs
dataCreditsimmutno
hntPriceOracleimmutno
burnermutno
recipientTokenAccountmutno
recipientimmutno
ownermutyes
hntMintmutno
dcMintmutno
circuitBreakermutno
circuitBreakerProgramimmutno
tokenProgramimmutno
systemProgramimmutno
associatedTokenProgramimmutno

Args

NameTypeDocs
argsMintDataCreditsArgsV0

issueDataCreditsV0

Accounts

NameMutabilitySignerDocs
dataCreditsimmutno
dcMintmutno
toimmutno
frommutyes
fromAccountmutno
toAccountmutno
tokenProgramimmutno
associatedTokenProgramimmutno
systemProgramimmutno

Args

NameTypeDocs
argsIssueDataCreditsArgsV0

genesisIssueDelegatedDataCreditsV0

Accounts

NameMutabilitySignerDocs
delegatedDataCreditsmutno
dataCreditsimmutno
lazySignermutyes
dcMintmutno
circuitBreakermutno
circuitBreakerProgramimmutno
daoimmutno
subDaoimmutno
escrowAccountmutno
tokenProgramimmutno
systemProgramimmutno

Args

NameTypeDocs
argsGenesisIssueDelegatedDataCreditsArgsV0

burnDelegatedDataCreditsV0

Accounts

NameMutabilitySignerDocs
subDaoEpochInfomutno
subDaomutno
dcBurnAuthorityimmutyes
registrarimmutno
daoimmutno
dcMintmutno
accountPayermutno
dataCreditsimmutno
delegatedDataCreditsimmutno
escrowAccountmutno
tokenProgramimmutno
heliumSubDaosProgramimmutno
systemProgramimmutno

Args

NameTypeDocs
argsBurnDelegatedDataCreditsArgsV0

burnWithoutTrackingV0

Accounts

NameMutabilitySignerDocs
burnAccountsimmutno

Args

NameTypeDocs
argsBurnWithoutTrackingArgsV0

delegateDataCreditsV0

Accounts

NameMutabilitySignerDocs
delegatedDataCreditsmutno
dataCreditsimmutno
dcMintimmutno
daoimmutno
subDaoimmutno
ownerimmutyes
fromAccountmutno
escrowAccountmutno
payermutyes
associatedTokenProgramimmutno
tokenProgramimmutno
systemProgramimmutno

Args

NameTypeDocs
argsDelegateDataCreditsArgsV0

updateDataCreditsV0

Accounts

NameMutabilitySignerDocs
dataCreditsmutno
dcMintimmutno
authorityimmutyes

Args

NameTypeDocs
argsUpdateDataCreditsArgsV0

changeDelegatedSubDaoV0

Accounts

NameMutabilitySignerDocs
payermutyes
authorityimmutyes
delegatedDataCreditsimmutno
destinationDelegatedDataCreditsmutno
dataCreditsimmutno
dcMintimmutno
daoimmutno
subDaoimmutno
destinationSubDaoimmutno
escrowAccountmutno
destinationEscrowAccountmutno
associatedTokenProgramimmutno
tokenProgramimmutno
systemProgramimmutno

Args

NameTypeDocs
argsChangeDelegatedSubDaoArgsV0

Accounts

DataCreditsV0

FieldType
dcMintpublicKey
hntMintpublicKey
authoritypublicKey
hntPriceOraclepublicKey
dataCreditsBumpu8
accountPayerpublicKey
accountPayerBumpu8

DelegatedDataCreditsV0

FieldType
dataCreditspublicKey
subDaopublicKey
escrowAccountpublicKey
routerKeystring
bumpu8

Types

WindowedCircuitBreakerConfigV0

FieldType
windowSizeSecondsu64
thresholdTypeThresholdType
thresholdu64

BurnDelegatedDataCreditsArgsV0

FieldType
amountu64

BurnWithoutTrackingArgsV0

FieldType
amountu64

ChangeDelegatedSubDaoArgsV0

FieldType
amountu64
routerKeystring

DelegateDataCreditsArgsV0

FieldType
amountu64
routerKeystring

GenesisIssueDelegatedDataCreditsArgsV0

FieldType
amountu64
routerKeystring

InitializeDataCreditsArgsV0

FieldType
authoritypublicKey
configWindowedCircuitBreakerConfigV0

IssueDataCreditsArgsV0

FieldType
amountu64

MintDataCreditsArgsV0

FieldType
hntAmountu64
dcAmountu64

UpdateDataCreditsArgsV0

FieldType
newAuthoritypublicKey
hntPriceOraclepublicKey

ThresholdType

VariantFields
Percent
Absolute
Previous