Record Class SystemProgram.TransferWithSeed
java.lang.Object
java.lang.Record
software.sava.solana.programs.system.SystemProgram.TransferWithSeed
- Enclosing class:
SystemProgram
public static record SystemProgram.TransferWithSeed(byte[] discriminator, long lamports, byte[] seed, software.sava.core.accounts.PublicKey programOwner)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTransferWithSeed(byte[] discriminator, long lamports, byte[] seed, software.sava.core.accounts.PublicKey programOwner) Creates an instance of aTransferWithSeedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of thediscriminatorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longlamports()Returns the value of thelamportsrecord component.software.sava.core.accounts.PublicKeyReturns the value of theprogramOwnerrecord component.read(byte[] data, int offset) read(software.sava.core.tx.Instruction instruction) byte[]seed()Returns the value of theseedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TransferWithSeed
public TransferWithSeed(byte[] discriminator, long lamports, byte[] seed, software.sava.core.accounts.PublicKey programOwner) Creates an instance of aTransferWithSeedrecord class.- Parameters:
discriminator- the value for thediscriminatorrecord componentlamports- the value for thelamportsrecord componentseed- the value for theseedrecord componentprogramOwner- the value for theprogramOwnerrecord component
-
-
Method Details
-
read
-
read
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
discriminator
public byte[] discriminator()Returns the value of thediscriminatorrecord component.- Returns:
- the value of the
discriminatorrecord component
-
lamports
public long lamports()Returns the value of thelamportsrecord component.- Returns:
- the value of the
lamportsrecord component
-
seed
public byte[] seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
programOwner
public software.sava.core.accounts.PublicKey programOwner()Returns the value of theprogramOwnerrecord component.- Returns:
- the value of the
programOwnerrecord component
-