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
nftVotermutno
collectionimmutno
systemProgramimmutno

Args

NameTypeDocs
argsInitializeNftVoterArgsV0

relinquishVoteV0

Accounts

NameMutabilitySignerDocs
refundmutnoAccount 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

Accounts

NftVoterV0

FieldType
authoritypublicKey
collectionpublicKey
namestring
bumpSeedu8

VoteMarkerV0

FieldType
voterpublicKey
nftVoterpublicKey
proposalpublicKey
mintpublicKey
choicesu16
bumpSeedu8

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