API

Organization Wallet 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

execute_transaction_v0

Accounts

NameMutabilitySignerDocs
organization_walletimmutno
proposalimmutno
choice_transactionimmutno
walletimmutno
refundimmutno

Args

NameTypeDocs

initialize_organization_wallet_v0

Accounts

NameMutabilitySignerDocs
payerimmutno
organization_walletimmutno
organizationimmutno
authorityimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

set_transactions_v0

Accounts

NameMutabilitySignerDocs
payerimmutno
ownerimmutno
organization_walletimmutno
proposalimmutno
wallet_proposalimmutno
choice_transactionimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

update_organization_wallet_v0

Accounts

NameMutabilitySignerDocs
payerimmutno
organization_walletimmutno
organizationimmutno
authorityimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

Accounts

ChoiceTransactionV0

undefined

OrganizationV0

undefined

OrganizationWalletV0

undefined

ProposalV0

undefined

WalletProposalV0

undefined

Types

Choice

FieldType
weightu128
namestring
uristring

ChoiceTransactionV0

FieldType
wallet_proposalpubkey
proposalpubkey
organization_walletpubkey
choice_indexu16
allow_execution_offsetu32
disable_execution_offsetu32
bump_seedu8
transaction[object Object]

CompiledInstructionV0

FieldType
program_id_indexu8
accountsbytes
databytes

CompiledTransactionArgV0

FieldType
num_rw_signersu8
num_ro_signersu8
num_rwu8
instructions[object Object]
signer_seedsbytes

CompiledTransactionV0

FieldType
num_rw_signersu8
num_ro_signersu8
num_rwu8
accountspubkey
instructions[object Object]
signer_seedsbytes

InitializeOrganizationWalletArgsV0

FieldType
namestring
proposal_configspubkey
indexu16

OrganizationV0

FieldType
num_proposalsu32
authoritypubkey
default_proposal_configpubkey
proposal_programpubkey
namestring
uristring
bump_seedu8

OrganizationWalletV0

FieldType
indexu16
organizationpubkey
walletpubkey
proposal_configspubkey
namestring
bump_seedu8
wallet_bump_seedu8

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

SetTransactionsArgsV0

FieldType
choice_indexu16
transaction_indexu16
allow_execution_offsetu32
disable_execution_offsetu32
transaction[object Object]

UpdateOrganizationWalletArgsV0

FieldType
namestring
proposal_configs[object Object]

WalletProposalV0

FieldType
proposalpubkey
organization_walletpubkey
num_transactions_by_choiceu16
Previous