Package-level declarations

Types

Link copied to clipboard

This class is used to represent an account address.

Link copied to clipboard

This interface is used to define the input for an account address.

Link copied to clipboard
typealias AccountCoinsData = GetAccountCoinsData.Result
Link copied to clipboard
@Serializable
data class AccountData(val sequenceNumber: String, val authenticationKey: String)
Link copied to clipboard
data class AccountModulesArgs(val accountAddress: AccountAddressInput, val options: AccountModulesArgs.Options? = null)
Link copied to clipboard
@Serializable
data class AccountResource(val type: String, val data: Data)
Link copied to clipboard

This enum is used to explain why an address was invalid.

Link copied to clipboard
@Serializable
abstract class AnyRawTransaction
Link copied to clipboard
Link copied to clipboard
class AptosConfig(settings: AptosSettings = AptosSettings())

The AptosConfig class holds the config information for the SDK client instance. It is initialized with an instance of AptosSettings and sets up various configurations based on the provided settings.

Link copied to clipboard
typealias AptosRequest = HttpRequest
Link copied to clipboard
typealias AptosResponse = HttpResponse
Link copied to clipboard
data class AptosSettings(val network: Network? = null, val fullNode: String? = null, val faucet: String? = null, val indexer: String? = null, val client: Client? = null, val clientConfig: ClientConfig = ClientConfig.default, val fullNodeConfig: FullNodeConfig? = null, val indexerConfig: IndexerConfig? = null, val faucetConfig: FaucetConfig? = null)
Link copied to clipboard
Link copied to clipboard
@Serializable
data class Block(val blockHeight: String, val blockHash: String, val blockTimestamp: String, val firstVersion: String, val lastVersion: String)
Link copied to clipboard
@Serializable
@SerialName(value = "block_epilogue_transaction")
data class BlockEpilogueTransactionResponse(val type: TransactionResponseType, val version: String, val hash: String, val stateChangeHash: String, val eventRootHash: String, val stateCheckpointHash: String?, val gasUsed: String, val success: Boolean, val vmStatus: String, val accumulatorRootHash: String, val timestamp: String) : TransactionResponse
Link copied to clipboard
@Serializable
@SerialName(value = "block_metadata_transaction")
data class BlockMetadataTransactionResponse(val type: TransactionResponseType, val version: String, val hash: String, val stateChangeHash: String, val eventRootHash: String, val stateCheckpointHash: String?, val gasUsed: String, val success: Boolean, val vmStatus: String, val accumulatorRootHash: String, val id: String, val epoch: String, val round: String, val events: List<Event>, val previousBlockVotesBitvec: List<Long>, val proposer: String, val failedProposerIndices: List<Long>, val timestamp: String) : TransactionResponse
Link copied to clipboard
@Serializable(with = BoolSerializer::class)
data class Bool(val value: Boolean) : TransactionArgument
Link copied to clipboard
typealias ChainTopUserTransactions = GetChainTopUserTransactions.Result
Link copied to clipboard
interface Client
Link copied to clipboard

General type definition for client headers

Link copied to clipboard
typealias CollectionData = GetCollectionData.Result
Link copied to clipboard
data class CreateCollectionOptions(val maxSupply: Long = Long.MAX_VALUE, val mutableDescription: Boolean = true, val mutableRoyalty: Boolean = true, val mutableURI: Boolean = true, val mutableTokenDescription: Boolean = true, val mutableTokenName: Boolean = true, val mutableTokenProperties: Boolean = true, val mutableTokenURI: Boolean = true, val tokensBurnableByCreator: Boolean = true, val tokensFreezableByCreator: Boolean = true, val royaltyNumerator: Long = 0, val royaltyDenominator: Long = 1)

Options for creating a new collection in an account.

Link copied to clipboard
@Serializable
data class Data(val authenticationKey: String? = null, val coinRegisterEvents: Event? = null, val guidCreationNum: String? = null, val keyRotationEvents: Event? = null, val sequenceNumber: String? = null)
Link copied to clipboard
Link copied to clipboard
class EntryFunctionABI(val typeParameters: List<MoveFunctionGenericTypeParam>, val parameters: List<TypeTag>, val signers: Int? = null) : FunctionABI

Interface of an Entry function's ABI.

Link copied to clipboard
@Serializable
data class Event(val guid: Guid, val sequenceNumber: String? = null, val type: String? = null, val data: JsonElement? = null)
Link copied to clipboard
data class FaucetConfig(val headers: Map<String, Any>? = null, val authToken: String? = null)

A Faucet only configuration object

Link copied to clipboard
@Serializable
data class FaucetRequest(val address: String, val amount: Long)
Link copied to clipboard
@Serializable
data class FaucetResponse(val txnHashes: List<String>)
Link copied to clipboard
@Serializable
data class FixedBytes(val value: HexInput) : TransactionArgument
Link copied to clipboard
data class FullNodeConfig(var headers: Map<String, Any>? = null) : ClientHeadersType

A Fullnode only configuration object.

Link copied to clipboard
open class FunctionABI(val typeParameters: List<MoveFunctionGenericTypeParam>, val parameters: List<TypeTag>)

Data need for a generic function ABI, both view and entry

Link copied to clipboard
data class FunctionArguments(val functionArguments: List<EntryFunctionArgument>)
Link copied to clipboard
Link copied to clipboard
@Serializable
data class GasEstimation(val gasEstimate: Long, val deprioritizedGasEstimate: Long? = null, val prioritizedGasEstimate: Long? = null)
Link copied to clipboard
@Serializable
data class GraphqlQuery(val query: String, val variables: Map<String, Int>? = null)
Link copied to clipboard
@Serializable
data class Guid(val creationNumber: String? = null, val accountAddress: String? = null)
Link copied to clipboard
Link copied to clipboard
@Serializable
data class Identifier(value: String)

Representation of an Identifier that can serialized and deserialized. We use Identifier to represent the module "name" in "ModuleId" and the "function name" in "EntryFunction"

Link copied to clipboard
data class IndexerConfig(var headers: Map<String, Any>? = null) : ClientHeadersType

An Indexer only configuration object.

Link copied to clipboard
data class InputEntryFunctionData(val function: MoveFunctionId, val typeArguments: List<TypeTag>, val functionArguments: List<EntryFunctionArgument>, val abi: EntryFunctionABI? = null) : InputGenerateTransactionPayloadData

The data needed to generate an Entry Function payload

Link copied to clipboard
Link copied to clipboard
data class InputGenerateTransactionOptions(val maxGasAmount: Long = DEFAULT_MAX_GAS_AMOUNT, val gasUnitPrice: Long? = null, val expireTimestamp: Long? = null, val accountSequenceNumber: Number? = null)

Optional options to set when generating a transaction

Link copied to clipboard
data class InputSimulateTransactionData(val signerPublicKey: PublicKey, val transaction: AnyRawTransaction, val feePayerPublicKey: PublicKey?, val options: InputSimulateTransactionOptions)
Link copied to clipboard
data class InputSimulateTransactionOptions(val estimateGasUnitPrice: Boolean = false, val estimateMaxGasAmount: Boolean = false, val estimatePrioritizedGasUnitPrice: Boolean = false)
Link copied to clipboard
data class InputSubmitTransactionData(val transaction: AnyRawTransaction, val senderAuthenticator: AccountAuthenticator, val feePayerAuthenticator: AccountAuthenticator? = null, val additionalSignersAuthenticators: List<AccountAuthenticator>? = null)
Link copied to clipboard
@Serializable
data class InputViewFunctionData(val function: MoveFunctionId, val typeArguments: List<TypeTag>, val functionArguments: List<EntryFunctionArgument>, val abi: ViewFunctionABI? = null)

The data needed to generate a View Function payload

Link copied to clipboard
@Serializable
data class LedgerInfo(val chainId: Long, val epoch: String, val ledgerVersion: String, val oldestLedgerVersion: String, val ledgerTimestamp: String, val nodeRole: String, val oldestBlockHeight: String, val blockHeight: String, val gitHash: String)
Link copied to clipboard
data class LedgerVersionArg(val ledgerVersion: Int? = null)
Link copied to clipboard
Link copied to clipboard
@Serializable
data class ModuleId(val address: AccountAddress, val name: Identifier)

Representation of a ModuleId that can serialized and deserialized ModuleId means the module address (e.g "0x1") and the module name (e.g "coin")

Link copied to clipboard
@Serializable
enum MoveAbility : Enum<MoveAbility>
Link copied to clipboard
@Serializable
data class MoveFunction(val name: String, val visibility: MoveVisibility, val isEntry: Boolean, val isView: Boolean, val genericTypeParams: List<MoveFunctionGenericTypeParam>, val params: List<String>, val return: List<String>)
Link copied to clipboard
@Serializable
data class MoveFunctionGenericTypeParam(val constraints: List<MoveAbility>)
Link copied to clipboard
Link copied to clipboard
@Serializable
data class MoveModule(val address: String, val name: String, val friends: List<MoveModuleId>, val exposedFunctions: List<MoveFunction>, val structs: List<MoveStruct>)
Link copied to clipboard
@Serializable
data class MoveModuleBytecode(val bytecode: String, val abi: MoveModule? = null)
Link copied to clipboard
typealias MoveModuleId = String
Link copied to clipboard
@Serializable
data class MoveOption<T : EntryFunctionArgument>(val value: T?) : TransactionArgument
Link copied to clipboard
@Serializable
data class MoveResource(val type: String)
Link copied to clipboard
@Serializable(with = MoveStringSerializer::class)
data class MoveString(val value: String) : TransactionArgument
Link copied to clipboard
@Serializable
data class MoveStruct(val name: String, val isNative: Boolean, val abilities: List<MoveAbility>, val genericTypeParams: List<MoveFunctionGenericTypeParam>, val fields: List<MoveStructField>)
Link copied to clipboard
@Serializable
data class MoveStructField(val name: String, val type: String)
Link copied to clipboard
typealias MoveStructId = String
Link copied to clipboard
@Serializable
sealed class MoveValue
Link copied to clipboard
@Serializable(with = MoveVectorSerializer::class)
data class MoveVector<T : EntryFunctionArgument>(var values: List<T>) : TransactionArgument

This class is the Kotlin representation of a Move vector<T>, where T is a type that represents either a primitive type (bool, u8, u64, ...) or a BCS-serializable struct itself.

Link copied to clipboard
@Serializable
enum MoveVisibility : Enum<MoveVisibility>
Link copied to clipboard
@Serializable
data class MultiAgentTransaction(val rawTransaction: RawTransaction) : AnyRawTransaction
Link copied to clipboard

Enum class representing the network to connect to.

Link copied to clipboard
typealias NumberOfDelegators = GetNumberOfDelegators.Result
Link copied to clipboard
sealed class Option<out T>
Link copied to clipboard
data class PaginationArgs(val offset: Int? = null, val limit: Int? = null)

Controls the number of results that are returned and the starting position of those results.

Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "pending_transaction")
data class PendingTransactionResponse(val type: TransactionResponseType = TransactionResponseType.PENDING, val hash: String, val sender: String, val sequenceNumber: String, val maxGasAmount: String, val gasUnitPrice: String, val expirationTimestampSecs: String) : TransactionResponse
Link copied to clipboard
data class PrivateKeyInput(val privateKey: PrivateKey, val address: AccountAddressInput? = null, val legacy: Boolean = true)

Input for creating an account from a private key.

Link copied to clipboard
typealias ProcessorStatus = GetProcessorStatus.Result
Link copied to clipboard

The list of supported Processor types for our indexer api.

Link copied to clipboard
sealed class PropertyType
Link copied to clipboard
sealed class PropertyValue
Link copied to clipboard
interface QueryParams
Link copied to clipboard
abstract class RequestOptions
Link copied to clipboard
@Serializable
sealed class ScriptFunctionArgument
Link copied to clipboard
@Serializable
data class ScriptPayloadResponse(val type: String, val code: String, val type_arguments: List<String>, val arguments: List<String>) : TransactionPayloadResponse
Link copied to clipboard
Link copied to clipboard
@Serializable
data class SimpleTransaction(val rawTransaction: RawTransaction, var feePayerAddress: AccountAddress?, val secondarySignerAddresses: Nothing? = null) : AnyRawTransaction
Link copied to clipboard
@Serializable
@SerialName(value = "state_checkpoint_transaction")
data class StateCheckpointTransactionResponse(val type: TransactionResponseType, val version: String, val hash: String, val stateChangeHash: String, val eventRootHash: String, val stateCheckpointHash: String?, val gasUsed: String, val success: Boolean, val vmStatus: String, val accumulatorRootHash: String, val timestamp: String) : TransactionResponse
Link copied to clipboard
@Serializable
class StructTag(val address: AccountAddress, val moduleName: String, val name: String, val typeArgs: List<TypeTag>)
Link copied to clipboard
@Serializable
data class TableItemRequest(val key_type: String, val value_type: String, val key: String)
Link copied to clipboard
typealias TokenData = GetTokenData.Result
Link copied to clipboard
Link copied to clipboard
data class TokenStandardArg(val tokenStandard: TokenStandard? = null)
Link copied to clipboard
@Serializable
sealed class TransactionArgument : EntryFunctionArgument
Link copied to clipboard
@Serializable
data class TransactionEd25519Signature(val type: String, val public_key: String, val signature: String) : TransactionSignature
Link copied to clipboard
Link copied to clipboard
@Serializable
data class TransactionPayloadEntryFunction(val entryFunction: EntryFunction) : TransactionPayload
Link copied to clipboard
@Serializable
sealed class TransactionPayloadResponse
Link copied to clipboard
Link copied to clipboard
@Serializable
sealed class TransactionResponse
Link copied to clipboard
Link copied to clipboard
@Serializable
sealed class TransactionSignature
Link copied to clipboard
data class TypeArguments(val typeArguments: List<TypeTag>)
Link copied to clipboard
Link copied to clipboard
@Serializable(with = TypeTagSerializer::class)
sealed class TypeTag
Link copied to clipboard
data object TypeTagAddress : TypeTag
Link copied to clipboard
data object TypeTagBool : TypeTag
Link copied to clipboard
class TypeTagGeneric(val id: UShort) : TypeTag
Link copied to clipboard
class TypeTagReference(val ref: TypeTag) : TypeTag
Link copied to clipboard
data object TypeTagSigner : TypeTag
Link copied to clipboard
@Serializable
class TypeTagStruct(val type: StructTag) : TypeTag
Link copied to clipboard
data object TypeTagU128 : TypeTag
Link copied to clipboard
data object TypeTagU16 : TypeTag
Link copied to clipboard
data object TypeTagU256 : TypeTag
Link copied to clipboard
data object TypeTagU32 : TypeTag
Link copied to clipboard
data object TypeTagU64 : TypeTag
Link copied to clipboard
data object TypeTagU8 : TypeTag
Link copied to clipboard
@Serializable
enum TypeTagVariants : Enum<TypeTagVariants>
Link copied to clipboard
class TypeTagVector(val type: TypeTag) : TypeTag
Link copied to clipboard
@Serializable
data class U128(val value: String) : TransactionArgument
Link copied to clipboard
@Serializable
data class U16(val value: UShort) : TransactionArgument
Link copied to clipboard
@Serializable
data class U256(val value: String) : TransactionArgument
Link copied to clipboard
@Serializable
data class U32(val value: UInt) : TransactionArgument
Link copied to clipboard
@Serializable(with = U64Serializer::class)
data class U64(val value: ULong) : TransactionArgument
Link copied to clipboard
@Serializable(with = U8Serializer::class)
data class U8(val value: Byte) : TransactionArgument
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "user_transaction")
data class UserTransactionResponse(val type: TransactionResponseType = TransactionResponseType.USER, val version: String, val hash: String, val stateChangeHash: String, val eventRootHash: String, val statecCheckpointHash: String?, val gasUsed: String, val success: Boolean, val vmStatus: String, val accumulatorRootHash: String, val sender: String, val sequenceNumber: String, val maxGasAmount: String, val gasUnitPrice: String, val expirationTimestampSecs: String, val events: List<Event>, val timestamp: String) : TransactionResponse
Link copied to clipboard
class ViewFunctionABI(val typeParameters: List<MoveFunctionGenericTypeParam>, val parameters: List<TypeTag>, val returnTypes: List<TypeTag>) : FunctionABI

Interface of an View function's ABI.

Link copied to clipboard
data class WaitForTransactionOptions(val timeoutSecs: Int = DEFAULT_TXN_TIMEOUT_SEC, val checkSuccess: Boolean = true, val waitForIndexer: Boolean? = null)

Options for waiting for a transaction to be finalized.

Link copied to clipboard
@Serializable
sealed class WriteSetChange
Link copied to clipboard
@Serializable
@SerialName(value = "WriteSetChange::Delete")
data class WriteSetChangeDeleteModule(val type: String, val address: String, val state_key_hash: String, val module: String) : WriteSetChange

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard