API
Organization 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
initializeOrganizationV0
Accounts
Name | Mutability | Signer | Docs |
---|---|---|---|
payer | mut | yes | |
organization | mut | no | |
systemProgram | immut | no |
Args
Name | Type | Docs |
---|---|---|
args | InitializeOrganizationArgsV0 |
initializeProposalV0
Accounts
Name | Mutability | Signer | Docs |
---|---|---|---|
payer | mut | yes | |
authority | immut | yes | |
owner | immut | no | |
proposal | mut | no | |
proposalConfig | immut | no | |
organization | mut | no | |
proposalProgram | immut | no | |
systemProgram | immut | no |
Args
Name | Type | Docs |
---|---|---|
args | InitializeProposalArgsV0 |
updateOrganizationV0
Accounts
Name | Mutability | Signer | Docs |
---|---|---|---|
organization | mut | no | |
authority | immut | yes |
Args
Name | Type | Docs |
---|---|---|
args | UpdateOrganizationArgsV0 |
Accounts
OrganizationV0
Field | Type |
---|---|
numProposals | u32 |
authority | publicKey |
defaultProposalConfig | publicKey |
proposalProgram | publicKey |
name | string |
uri | string |
bumpSeed | u8 |
Types
InitializeOrganizationArgsV0
Field | Type |
---|---|
name | string |
authority | publicKey |
defaultProposalConfig | publicKey |
proposalProgram | publicKey |
uri | string |
ChoiceArg
Field | Type |
---|---|
name | string |
uri | string |
InitializeProposalArgsV0
Field | Type |
---|---|
name | string |
uri | string |
maxChoicesPerVoter | u16 |
choices | ChoiceArg |
tags | string |
UpdateOrganizationArgsV0
Field | Type |
---|---|
authority | publicKey |
defaultProposalConfig | publicKey |
proposalProgram | publicKey |
uri | string |