public interface Transaction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final Comparator<AccountMeta> static final intstatic final intstatic final intstatic final BiFunction<AccountMeta, AccountMeta, AccountMeta> static final intstatic final intstatic final bytestatic final intstatic final Comparator<AccountMeta> -
Method Summary
Modifier and TypeMethodDescriptionappendInstructions(SequencedCollection<Instruction> instructions) appendIx(Instruction ix) default Stringstatic TransactioncreateTx(List<Instruction> instructions) static TransactioncreateTx(List<Instruction> instructions, int serializedInstructionLength, Map<PublicKey, AccountMeta> mergedAccounts, AddressLookupTable lookupTable) static TransactioncreateTx(List<Instruction> instructions, int serializedInstructionLength, Map<PublicKey, AccountMeta> mergedAccounts, LookupTableAccountMeta[] tableAccountMetas) static TransactioncreateTx(List<Instruction> instructions, int serializedInstructionLength, AccountMeta[] sortedAccounts) static TransactioncreateTx(List<Instruction> instructions, int serializedInstructionLength, AccountMeta[] sortedAccounts, AddressLookupTable lookupTable) static TransactioncreateTx(List<Instruction> instructions, int serializedInstructionLength, AccountMeta[] sortedAccounts, LookupTableAccountMeta[] tableAccountMetas) static TransactioncreateTx(List<Instruction> instructions, AddressLookupTable lookupTable) static TransactioncreateTx(List<Instruction> instructions, AccountMeta[] sortedAccountKeys) static TransactioncreateTx(List<Instruction> instructions, Instruction... push) static TransactioncreateTx(AccountMeta feePayer, List<Instruction> instructions) static TransactioncreateTx(AccountMeta feePayer, List<Instruction> instructions, AddressLookupTable lookupTable) static TransactioncreateTx(AccountMeta feePayer, List<Instruction> instructions, AddressLookupTable lookupTable, LookupTableAccountMeta[] tableAccountMetas) static TransactioncreateTx(AccountMeta feePayer, List<Instruction> instructions, LookupTableAccountMeta[] tableAccountMetas) static TransactioncreateTx(AccountMeta feePayer, Instruction instruction) static TransactioncreateTx(PublicKey feePayer, List<Instruction> instructions) static TransactioncreateTx(PublicKey feePayer, List<Instruction> instructions, AddressLookupTable lookupTable) static TransactioncreateTx(PublicKey feePayer, List<Instruction> instructions, LookupTableAccountMeta[] tableAccountMetas) static TransactioncreateTx(PublicKey feePayer, List<Instruction> instructions, Instruction... push) static TransactioncreateTx(PublicKey feePayer, Instruction instruction) static TransactioncreateTx(Instruction instruction) static TransactioncreateTx(Instruction[] instructions, int serializedInstructionLength, Map<PublicKey, AccountMeta> mergedAccounts) static TransactioncreateTx(Instruction instruction, AccountMeta[] sortedAccountKeys) default booleanfeePayer()static StringgetBase58Id(byte[] signedTransaction) byte[]getId()static byte[]getId(byte[] signedTransaction) intprependInstructions(SequencedCollection<Instruction> instructions) prependInstructions(Instruction ix1, Instruction ix2) prependIx(Instruction ix) byte[]replaceInstruction(int index, Instruction instruction) byte[]static voidsetBlockHash(byte[] data, byte[] recentBlockHash) voidsetRecentBlockHash(byte[] recentBlockHash) voidsetRecentBlockHash(String recentBlockHash) default voidsign(byte[] recentBlockHash, SequencedCollection<Signer> signers) default voidvoiddefault voidsign(String recentBlockHash, SequencedCollection<Signer> signers) default voidvoidsign(Collection<Signer> signers) voidsign(SequencedCollection<Signer> signers) static voidsign(SequencedCollection<Signer> signers, byte[] out) static voidsign(SequencedCollection<Signer> signers, byte[] out, int msgOffset, int msgLen, int offset) voidstatic voidstatic voiddefault StringsignAndBase64Encode(byte[] recentBlockHash, SequencedCollection<Signer> signers) default StringsignAndBase64Encode(byte[] recentBlockHash, Signer signer) default StringsignAndBase64Encode(String recentBlockHash, SequencedCollection<Signer> signers) default StringsignAndBase64Encode(String recentBlockHash, Signer signer) default StringsignAndBase64Encode(SequencedCollection<Signer> signers) static StringsignAndBase64Encode(SequencedCollection<Signer> signers, byte[] out) default StringsignAndBase64Encode(Signer signer) static StringsignAndBase64Encode(Signer signer, byte[] out) intsize()static AccountMeta[]sortLegacyAccounts(Map<PublicKey, AccountMeta> mergedAccounts) static AccountMeta[]sortV0Accounts(Map<PublicKey, AccountMeta> mergedAccounts) intversion()
-
Field Details
-
MAX_SERIALIZED_LENGTH
static final int MAX_SERIALIZED_LENGTH- See Also:
-
MAX_BASE_64_ENCODED_LENGTH
static final int MAX_BASE_64_ENCODED_LENGTH- See Also:
-
SIGNATURE_LENGTH
static final int SIGNATURE_LENGTH- See Also:
-
BLOCK_HASH_LENGTH
static final int BLOCK_HASH_LENGTH- See Also:
-
MAX_ACCOUNTS
static final int MAX_ACCOUNTS- See Also:
-
BLOCK_QUEUE_SIZE
static final int BLOCK_QUEUE_SIZE- See Also:
-
BLOCKS_UNTIL_FINALIZED
static final int BLOCKS_UNTIL_FINALIZED- See Also:
-
MERGE_ACCOUNT_META
-
LEGACY_META_COMPARATOR
-
VO_META_COMPARATOR
-
MSG_HEADER_LENGTH
static final int MSG_HEADER_LENGTH- See Also:
-
VERSIONED_MSG_HEADER_LENGTH
static final int VERSIONED_MSG_HEADER_LENGTH- See Also:
-
VERSIONED_BIT_MASK
static final byte VERSIONED_BIT_MASK- See Also:
-
BASE_LOOKUP_TABLE_LEN
static final int BASE_LOOKUP_TABLE_LEN- See Also:
-
-
Method Details
-
getBase58Id
-
getId
static byte[] getId(byte[] signedTransaction) -
sortLegacyAccounts
-
createTx
-
createTx
-
createTx
-
createTx
-
createTx
static Transaction createTx(AccountMeta feePayer, List<Instruction> instructions, AddressLookupTable lookupTable) -
createTx
static Transaction createTx(PublicKey feePayer, List<Instruction> instructions, AddressLookupTable lookupTable) -
createTx
static Transaction createTx(AccountMeta feePayer, List<Instruction> instructions, AddressLookupTable lookupTable, LookupTableAccountMeta[] tableAccountMetas) -
createTx
-
createTx
static Transaction createTx(PublicKey feePayer, List<Instruction> instructions, Instruction... push) -
createTx
-
createTx
-
createTx
-
createTx
-
createTx
-
createTx
static Transaction createTx(Instruction[] instructions, int serializedInstructionLength, Map<PublicKey, AccountMeta> mergedAccounts) -
createTx
static Transaction createTx(List<Instruction> instructions, int serializedInstructionLength, AccountMeta[] sortedAccounts) -
sortV0Accounts
-
createTx
static Transaction createTx(List<Instruction> instructions, int serializedInstructionLength, Map<PublicKey, AccountMeta> mergedAccounts, AddressLookupTable lookupTable) -
createTx
static Transaction createTx(List<Instruction> instructions, int serializedInstructionLength, AccountMeta[] sortedAccounts, AddressLookupTable lookupTable) -
createTx
static Transaction createTx(AccountMeta feePayer, List<Instruction> instructions, LookupTableAccountMeta[] tableAccountMetas) -
createTx
static Transaction createTx(PublicKey feePayer, List<Instruction> instructions, LookupTableAccountMeta[] tableAccountMetas) -
createTx
static Transaction createTx(List<Instruction> instructions, int serializedInstructionLength, Map<PublicKey, AccountMeta> mergedAccounts, LookupTableAccountMeta[] tableAccountMetas) -
createTx
static Transaction createTx(List<Instruction> instructions, int serializedInstructionLength, AccountMeta[] sortedAccounts, LookupTableAccountMeta[] tableAccountMetas) -
setBlockHash
static void setBlockHash(byte[] data, byte[] recentBlockHash) -
sign
-
sign
-
signAndBase64Encode
-
sign
static void sign(SequencedCollection<Signer> signers, byte[] out, int msgOffset, int msgLen, int offset) -
sign
-
signAndBase64Encode
-
base64EncodeToString
-
sign
-
sign
-
signAndBase64Encode
-
sign
-
sign
-
signAndBase64Encode
-
signAndBase64Encode
-
sign
-
sign
-
signAndBase64Encode
-
sign
-
sign
-
signAndBase64Encode
-
signAndBase64Encode
-
getBase58Id
String getBase58Id() -
getId
byte[] getId() -
size
int size() -
exceedsSizeLimit
default boolean exceedsSizeLimit() -
instructions
List<Instruction> instructions() -
lookupTable
AddressLookupTable lookupTable() -
tableAccountMetas
LookupTableAccountMeta[] tableAccountMetas() -
setRecentBlockHash
void setRecentBlockHash(byte[] recentBlockHash) -
setRecentBlockHash
-
recentBlockHash
byte[] recentBlockHash() -
version
int version() -
numSigners
int numSigners() -
serialized
byte[] serialized() -
prependIx
-
prependInstructions
-
prependInstructions
-
appendIx
-
appendInstructions
-
replaceInstruction
-
feePayer
AccountMeta feePayer()
-