Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class AccountMeta(val publicKey: PublicKey, val isSigner: Boolean, val isWritable: Boolean)
Link copied to clipboard
typealias Blockhash = String
Link copied to clipboard

Commitment.Finalized - the node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized Commitment.Confirmed - the node will query the most recent block that has been voted on by supermajority of the cluster. It incorporates votes from gossip and replay. It does not count votes on descendants of a block, only direct votes on that block. This confirmation level also upholds "optimistic confirmation" guarantees in release 1.3 and onwards. Commitment.Processed - the node will query its most recent block. Note that the block may still be skipped by the cluster.

Link copied to clipboard
data class CompiledInstruction(val programIdIndex: Byte = 0, val accounts: List<Byte>, val data: ByteArray)
Link copied to clipboard
sealed class DecodedInstruction
Link copied to clipboard
data class DecodedTransaction(val instructions: List<DecodedInstruction>, val signatures: List<SignaturePublicKeyPair>)
Link copied to clipboard
@Serializable
data class FeeCalculator(val lamportsPerSignature: ULong)
Link copied to clipboard
class Message(var feePayer: PublicKey? = null, var recentBlockHash: String? = null, accountKeys: AccountKeysList = AccountKeysList(), instructions: List<TransactionInstruction> = emptyList())
Link copied to clipboard
data class NonceAccountData(val version: UInt, val state: UInt, val authorizedPubkey: PublicKey, val nonce: String, val feeCalculator: FeeCalculator)
Link copied to clipboard
data class SignaturePubkeyPair(val signature: String, val publicKey: PublicKey)
Link copied to clipboard
data class SignaturePublicKeyPair(val signature: ByteArray?, val publicKey: PublicKey)
Link copied to clipboard
typealias Signer = Ed25519Keypair
Link copied to clipboard
class Transaction(val message: Message = Message(), _signatures: MutableList<String> = mutableListOf())
Link copied to clipboard
Link copied to clipboard
data class TransactionInstruction(val programId: PublicKey, val keys: List<AccountMeta>, val data: ByteArray)

Functions

Link copied to clipboard
Link copied to clipboard
fun PublicKey.Companion.read(data: BufferedSource): PublicKey
Link copied to clipboard