Coda by Ian Macalinao
Preparing search index...
@solana-programs/spl-governance
getCastVoteInstruction
Function getCastVoteInstruction
getCastVoteInstruction
<
TAccountRealmAccount
extends
InstructionAccountInput
,
TAccountGovernanceAccount
extends
InstructionAccountInput
,
TAccountProposalAccount
extends
InstructionAccountInput
,
TAccountProposalTokenOwnerRecord
extends
InstructionAccountInput
,
TAccountVoterTokenOwnerRecord
extends
InstructionAccountInput
,
TAccountGovernanceAuthority
extends
InstructionSignerInput
,
TAccountProposalVoteRecord
extends
InstructionAccountInput
,
TAccountGoverningTokenMint
extends
InstructionAccountInput
,
TAccountPayer
extends
InstructionSignerInput
,
TAccountSystemProgram
extends
InstructionAccountInput
,
TAccountRealmConfigAccount
extends
InstructionAccountInput
,
TAccountVoterWeightRecord
extends
InstructionAccountInput
,
TAccountMaxVoterWeightRecord
extends
InstructionAccountInput
,
TProgramAddress
extends
Address
=
Address
<
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
>
,
>
(
input
:
CastVoteInput
<
TAccountRealmAccount
,
TAccountGovernanceAccount
,
TAccountProposalAccount
,
TAccountProposalTokenOwnerRecord
,
TAccountVoterTokenOwnerRecord
,
TAccountGovernanceAuthority
,
TAccountProposalVoteRecord
,
TAccountGoverningTokenMint
,
TAccountPayer
,
TAccountSystemProgram
,
TAccountRealmConfigAccount
,
TAccountVoterWeightRecord
,
TAccountMaxVoterWeightRecord
,
>
,
config
?:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
;
}
,
)
:
CastVoteInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountRealmAccount
,
InstructionAccountInputAddress
<
TAccountRealmAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGovernanceAccount
,
InstructionAccountInputAddress
<
TAccountGovernanceAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountProposalAccount
,
InstructionAccountInputAddress
<
TAccountProposalAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountProposalTokenOwnerRecord
,
InstructionAccountInputAddress
<
TAccountProposalTokenOwnerRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountVoterTokenOwnerRecord
,
InstructionAccountInputAddress
<
TAccountVoterTokenOwnerRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGovernanceAuthority
,
InstructionAccountInputAddress
<
TAccountGovernanceAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountProposalVoteRecord
,
InstructionAccountInputAddress
<
TAccountProposalVoteRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGoverningTokenMint
,
InstructionAccountInputAddress
<
TAccountGoverningTokenMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRealmConfigAccount
,
InstructionAccountInputAddress
<
TAccountRealmConfigAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountVoterWeightRecord
,
InstructionAccountInputAddress
<
TAccountVoterWeightRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMaxVoterWeightRecord
,
InstructionAccountInputAddress
<
TAccountMaxVoterWeightRecord
>
,
>
,
>
Type Parameters
TAccountRealmAccount
extends
InstructionAccountInput
TAccountGovernanceAccount
extends
InstructionAccountInput
TAccountProposalAccount
extends
InstructionAccountInput
TAccountProposalTokenOwnerRecord
extends
InstructionAccountInput
TAccountVoterTokenOwnerRecord
extends
InstructionAccountInput
TAccountGovernanceAuthority
extends
InstructionSignerInput
TAccountProposalVoteRecord
extends
InstructionAccountInput
TAccountGoverningTokenMint
extends
InstructionAccountInput
TAccountPayer
extends
InstructionSignerInput
TAccountSystemProgram
extends
InstructionAccountInput
TAccountRealmConfigAccount
extends
InstructionAccountInput
TAccountVoterWeightRecord
extends
InstructionAccountInput
TAccountMaxVoterWeightRecord
extends
InstructionAccountInput
TProgramAddress
extends
Address
=
Address
<
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
>
Parameters
input
:
CastVoteInput
<
TAccountRealmAccount
,
TAccountGovernanceAccount
,
TAccountProposalAccount
,
TAccountProposalTokenOwnerRecord
,
TAccountVoterTokenOwnerRecord
,
TAccountGovernanceAuthority
,
TAccountProposalVoteRecord
,
TAccountGoverningTokenMint
,
TAccountPayer
,
TAccountSystemProgram
,
TAccountRealmConfigAccount
,
TAccountVoterWeightRecord
,
TAccountMaxVoterWeightRecord
,
>
Optional
config
:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
}
Returns
CastVoteInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountRealmAccount
,
InstructionAccountInputAddress
<
TAccountRealmAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGovernanceAccount
,
InstructionAccountInputAddress
<
TAccountGovernanceAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountProposalAccount
,
InstructionAccountInputAddress
<
TAccountProposalAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountProposalTokenOwnerRecord
,
InstructionAccountInputAddress
<
TAccountProposalTokenOwnerRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountVoterTokenOwnerRecord
,
InstructionAccountInputAddress
<
TAccountVoterTokenOwnerRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGovernanceAuthority
,
InstructionAccountInputAddress
<
TAccountGovernanceAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountProposalVoteRecord
,
InstructionAccountInputAddress
<
TAccountProposalVoteRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGoverningTokenMint
,
InstructionAccountInputAddress
<
TAccountGoverningTokenMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRealmConfigAccount
,
InstructionAccountInputAddress
<
TAccountRealmConfigAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountVoterWeightRecord
,
InstructionAccountInputAddress
<
TAccountVoterWeightRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMaxVoterWeightRecord
,
InstructionAccountInputAddress
<
TAccountMaxVoterWeightRecord
>
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coda by Ian Macalinao
Loading...