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

initialize_nft_voter_v0

Accounts

NameMutabilitySignerDocs
payerimmutno
proxy_configimmutno
nft_voterimmutno
collectionimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

proxied_relinquish_vote_v0

Accounts

NameMutabilitySignerDocs
rent_refundimmutnoAccount to receive sol rent_refund if marker is closed
markerimmutno
nft_voterimmutno
voterimmutno
mintimmutno
metadataimmutno
proxy_assignmentimmutno
proposalimmutno
proposal_configimmutno
state_controllerimmutno
on_vote_hookimmutno
proposal_programimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

proxied_vote_v0

Accounts

NameMutabilitySignerDocs
payerimmutno
markerimmutno
proxy_assignmentimmutno
nft_voterimmutno
voterimmutno
mintimmutno
metadataimmutno
proposalimmutno
proposal_configimmutno
state_controllerimmutno
on_vote_hookimmutno
proposal_programimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

relinquish_vote_v0

Accounts

NameMutabilitySignerDocs
rent_refundimmutnoAccount to receive sol refund if marker is closed
markerimmutno
nft_voterimmutno
voterimmutno
mintimmutno
metadataimmutno
token_accountimmutno
proposalimmutno
proposal_configimmutno
state_controllerimmutno
on_vote_hookimmutno
proposal_programimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

update_nft_voter_v0

Accounts

NameMutabilitySignerDocs
authorityimmutno
proxy_configimmutno
new_authorityimmutno
nft_voterimmutno

Args

NameTypeDocs

vote_v0

Accounts

NameMutabilitySignerDocs
payerimmutno
markerimmutno
nft_voterimmutno
voterimmutno
mintimmutno
metadataimmutno
token_accountimmutno
proposalimmutno
proposal_configimmutno
state_controllerimmutno
on_vote_hookimmutno
proposal_programimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

Accounts

NftVoterV0

undefined

ProposalConfigV0

undefined

ProposalV0

undefined

ProxyAssignmentV0

undefined

ProxyConfigV0

undefined

VoteMarkerV0

undefined

Types

Choice

FieldType
weightu128
namestring
uristring

InitializeNftVoterArgsV0

FieldType
namestring
authoritypubkey

NftVoterV0

FieldType
authoritypubkey
collectionpubkey
namestring
bump_seedu8
proxy_configpubkey

ProposalConfigV0

FieldType
vote_controllerpubkey
state_controllerpubkey
on_vote_hookpubkey
namestring
bump_seedu8
authoritypubkey

ProposalState

VariantFields
Draft
Cancelled
Votingstart_ts: i64
Resolvedchoices: [object Object], end_ts: i64
Customname: string, bin: bytes

ProposalV0

FieldType
namespacepubkey
ownerpubkey
state[object Object]
created_ati64
proposal_configpubkey
max_choices_per_voteru16
seedbytes
namestring
uristring
tagsstring
choices[object Object]
bump_seedu8

ProxyAssignmentV0

FieldType
voterpubkey
proxy_configpubkey
assetpubkey
indexu16
next_voterpubkey
rent_refundpubkey
expiration_timei64
bump_seedu8

ProxyConfigV0

FieldType
authoritypubkey
namestring
max_proxy_timei64
seasons[object Object]

RelinquishVoteArgsV0

FieldType
choiceu16

SeasonV0

FieldType
starti64
endi64

VoteArgsV0

FieldType
choiceu16

VoteMarkerV0

FieldType
voterpubkey
nft_voterpubkey
proposalpubkey
mintpubkey
choicesu16
bump_seedu8
proxy_indexu16
rent_refundpubkey
Previous