API

Nft Voter 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

initializeNftVoterV0

Accounts

NameMutabilitySignerDocs
payermutyes
proxyConfigimmutno
nftVotermutno
collectionimmutno
systemProgramimmutno

Args

NameTypeDocs
argsInitializeNftVoterArgsV0

relinquishVoteV0

Accounts

NameMutabilitySignerDocs
rentRefundmutnoAccount to receive sol refund if marker is closed
markermutno
nftVoterimmutno
voterimmutyes
mintimmutno
metadataimmutno
tokenAccountimmutno
proposalmutno
proposalConfigimmutno
stateControllermutno
onVoteHookimmutno
proposalProgramimmutno
systemProgramimmutno

Args

NameTypeDocs
argsRelinquishVoteArgsV0

voteV0

Accounts

NameMutabilitySignerDocs
payermutyes
markermutno
nftVoterimmutno
voterimmutyes
mintimmutno
metadataimmutno
tokenAccountimmutno
proposalmutno
proposalConfigimmutno
stateControllermutno
onVoteHookimmutno
proposalProgramimmutno
systemProgramimmutno

Args

NameTypeDocs
argsVoteArgsV0

proxiedRelinquishVoteV0

Accounts

NameMutabilitySignerDocs
rentRefundmutnoAccount to receive sol rent_refund if marker is closed
markermutno
nftVoterimmutno
voterimmutyes
mintimmutno
metadataimmutno
proxyAssignmentimmutno
proposalmutno
proposalConfigimmutno
stateControllermutno
onVoteHookimmutno
proposalProgramimmutno
systemProgramimmutno

Args

NameTypeDocs
argsRelinquishVoteArgsV0

proxiedVoteV0

Accounts

NameMutabilitySignerDocs
payermutyes
markermutno
proxyAssignmentimmutno
nftVoterimmutno
voterimmutyes
mintimmutno
metadataimmutno
proposalmutno
proposalConfigimmutno
stateControllermutno
onVoteHookimmutno
proposalProgramimmutno
systemProgramimmutno

Args

NameTypeDocs
argsVoteArgsV0

updateNftVoterV0

Accounts

NameMutabilitySignerDocs
authorityimmutyes
proxyConfigimmutno
newAuthorityimmutno
nftVoterimmutno

Args

NameTypeDocs

Accounts

NftVoterV0

FieldType
authoritypublicKey
collectionpublicKey
namestring
bumpSeedu8
proxyConfigpublicKey

VoteMarkerV0

FieldType
voterpublicKey
nftVoterpublicKey
proposalpublicKey
mintpublicKey
choicesu16
bumpSeedu8
proxyIndexu16
rentRefundpublicKey

Types

InitializeNftVoterArgsV0

FieldType
namestring
authoritypublicKey

RelinquishVoteArgsV0

FieldType
choiceu16

VoteArgsV0

FieldType
choiceu16

Key

VariantFields
Uninitialized
EditionV1
MasterEditionV1
ReservationListV1
MetadataV1
ReservationListV2
MasterEditionV2
EditionMarker
UseAuthorityRecord
CollectionAuthorityRecord
TokenOwnedEscrow
TokenRecord
MetadataDelegate

CollectionDetails

VariantFields
V1size: u64

ProgrammableConfig

VariantFields
V1rule_set: [object Object]

UseMethod

VariantFields
Burn
Multiple
Single

TokenStandard

VariantFields
NonFungible
FungibleAsset
Fungible
NonFungibleEdition
ProgrammableNonFungible
Previous