agora.solana.system package

Submodules

agora.solana.system.program module

class agora.solana.system.program.Command(value)[source]

Bases: enum.IntEnum

An enumeration.

ADVANCE_NONCE_ACCOUNT = 4
ALLOCATE = 8
ALLOCATE_WITH_SEED = 9
ASSIGN = 1
ASSIGN_WITH_SEED = 10
AUTHORIZE_NONCE_ACCOUNT = 7
CREATE_ACCOUNT = 0
CREATE_ACCOUNT_WITH_SEED = 3
INITIALIZE_NONCE_ACCOUNT = 6
TRANSFER = 2
TRANSFER_WITH_SEED = 11
WITHDRAW_NONCE_ACCOUNT = 5
class agora.solana.system.program.DecompiledCreateAccount(funder, address, owner, lamports, size)[source]

Bases: tuple

property address

Alias for field number 1

property funder

Alias for field number 0

property lamports

Alias for field number 3

property owner

Alias for field number 2

property size

Alias for field number 4

agora.solana.system.program.create_account(subsidizer, address, owner, lamports, size)[source]
Account references
  1. [WRITE, SIGNER] Funding account

  2. [WRITE, SIGNER] New account

CreateAccount {

// Number of lamports to transfer to the new account lamports: u64, // Number of bytes of memory to allocate space: u64,

// Address of program that will own the new account owner: Pubkey,

}

Return type:

Instruction

agora.solana.system.program.decompile_create_account(m, index)[source]
Return type:

DecompiledCreateAccount

Module contents

class agora.solana.system.Command(value)[source]

Bases: enum.IntEnum

An enumeration.

ADVANCE_NONCE_ACCOUNT = 4
ALLOCATE = 8
ALLOCATE_WITH_SEED = 9
ASSIGN = 1
ASSIGN_WITH_SEED = 10
AUTHORIZE_NONCE_ACCOUNT = 7
CREATE_ACCOUNT = 0
CREATE_ACCOUNT_WITH_SEED = 3
INITIALIZE_NONCE_ACCOUNT = 6
TRANSFER = 2
TRANSFER_WITH_SEED = 11
WITHDRAW_NONCE_ACCOUNT = 5
agora.solana.system.create_account(subsidizer, address, owner, lamports, size)[source]
Account references
  1. [WRITE, SIGNER] Funding account

  2. [WRITE, SIGNER] New account

CreateAccount {

// Number of lamports to transfer to the new account lamports: u64, // Number of bytes of memory to allocate space: u64,

// Address of program that will own the new account owner: Pubkey,

}

Return type:

Instruction

agora.solana.system.decompile_create_account(m, index)[source]
Return type:

DecompiledCreateAccount