Coda by Ian Macalinao
Preparing search index...
@macalinao/clients-spl-governance
getCastVoteInstruction
Function getCastVoteInstruction
getCastVoteInstruction
<
TAccountRealmAccount
extends
string
,
TAccountGovernanceAccount
extends
string
,
TAccountProposalAccount
extends
string
,
TAccountProposalTokenOwnerRecord
extends
string
,
TAccountVoterTokenOwnerRecord
extends
string
,
TAccountGovernanceAuthority
extends
string
,
TAccountProposalVoteRecord
extends
string
,
TAccountGoverningTokenMint
extends
string
,
TAccountPayer
extends
string
,
TAccountSystemProgram
extends
string
,
TAccountRealmConfigAccount
extends
string
,
TAccountVoterWeightRecord
extends
string
,
TAccountMaxVoterWeightRecord
extends
string
,
TProgramAddress
extends
Address
=
Address
<
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
>
,
>
(
input
:
CastVoteInput
<
TAccountRealmAccount
,
TAccountGovernanceAccount
,
TAccountProposalAccount
,
TAccountProposalTokenOwnerRecord
,
TAccountVoterTokenOwnerRecord
,
TAccountGovernanceAuthority
,
TAccountProposalVoteRecord
,
TAccountGoverningTokenMint
,
TAccountPayer
,
TAccountSystemProgram
,
TAccountRealmConfigAccount
,
TAccountVoterWeightRecord
,
TAccountMaxVoterWeightRecord
,
>
,
config
?:
{
programAddress
?:
TProgramAddress
}
,
)
:
CastVoteInstruction
<
TProgramAddress
,
TAccountRealmAccount
,
TAccountGovernanceAccount
,
TAccountProposalAccount
,
TAccountProposalTokenOwnerRecord
,
TAccountVoterTokenOwnerRecord
,
TAccountGovernanceAuthority
,
TAccountProposalVoteRecord
,
TAccountGoverningTokenMint
,
TAccountPayer
,
TAccountSystemProgram
,
TAccountRealmConfigAccount
,
TAccountVoterWeightRecord
,
TAccountMaxVoterWeightRecord
,
>
Type Parameters
TAccountRealmAccount
extends
string
TAccountGovernanceAccount
extends
string
TAccountProposalAccount
extends
string
TAccountProposalTokenOwnerRecord
extends
string
TAccountVoterTokenOwnerRecord
extends
string
TAccountGovernanceAuthority
extends
string
TAccountProposalVoteRecord
extends
string
TAccountGoverningTokenMint
extends
string
TAccountPayer
extends
string
TAccountSystemProgram
extends
string
TAccountRealmConfigAccount
extends
string
TAccountVoterWeightRecord
extends
string
TAccountMaxVoterWeightRecord
extends
string
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
}
Returns
CastVoteInstruction
<
TProgramAddress
,
TAccountRealmAccount
,
TAccountGovernanceAccount
,
TAccountProposalAccount
,
TAccountProposalTokenOwnerRecord
,
TAccountVoterTokenOwnerRecord
,
TAccountGovernanceAuthority
,
TAccountProposalVoteRecord
,
TAccountGoverningTokenMint
,
TAccountPayer
,
TAccountSystemProgram
,
TAccountRealmConfigAccount
,
TAccountVoterWeightRecord
,
TAccountMaxVoterWeightRecord
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coda by Ian Macalinao
Loading...