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? = null)

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? = null, 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_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
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
@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
@Serializable
data class HexInput(val value: String) : AccountAddressInput
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? = DEFAULT_TXN_EXP_SEC_FROM_NOW, val accountSequenceNumber: Number? = null)

Optional options to set when generating a transaction

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
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
@Serializable
sealed class MoveValue
Link copied to clipboard
@Serializable
data class MoveVector<T : EntryFunctionArgument>(var values: List<T>) : TransactionArgument
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
data class PendingTransactionResponse(val hash: String, val sender: String, val sequenceNumber: String, val maxGasAmount: String, val gasUnitPrice: String, val expirationTimestampSecs: String)
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
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, val feePayerAddress: AccountAddress?, val secondarySignerAddresses: Nothing? = null) : AnyRawTransaction
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 class TypeTagAddress(val enumIndex: TypeTagVariants = TypeTagVariants.Address) : TypeTag
Link copied to clipboard
data class TypeTagBool(val enumIndex: TypeTagVariants = TypeTagVariants.Bool) : TypeTag
Link copied to clipboard
class TypeTagGeneric(val enumIndex: TypeTagVariants = TypeTagVariants.Generic, val id: UShort) : TypeTag
Link copied to clipboard
class TypeTagReference(val enumIndex: TypeTagVariants = TypeTagVariants.Reference, val ref: TypeTag) : TypeTag
Link copied to clipboard
data class TypeTagSigner(val enumIndex: TypeTagVariants = TypeTagVariants.Signer) : TypeTag
Link copied to clipboard
@Serializable
class TypeTagStruct(val enumIndex: TypeTagVariants = TypeTagVariants.Struct, val type: StructTag) : TypeTag
Link copied to clipboard
data class TypeTagU128(val enumIndex: TypeTagVariants = TypeTagVariants.U128) : TypeTag
Link copied to clipboard
data class TypeTagU16(val enumIndex: TypeTagVariants = TypeTagVariants.U16) : TypeTag
Link copied to clipboard
data class TypeTagU256(val enumIndex: TypeTagVariants = TypeTagVariants.U256) : TypeTag
Link copied to clipboard
data class TypeTagU32(val enumIndex: TypeTagVariants = TypeTagVariants.U32) : TypeTag
Link copied to clipboard
data class TypeTagU64(val enumIndex: TypeTagVariants = TypeTagVariants.U64) : TypeTag
Link copied to clipboard
data class TypeTagU8(val enumIndex: TypeTagVariants = TypeTagVariants.U8) : TypeTag
Link copied to clipboard
@Serializable
enum TypeTagVariants : Enum<TypeTagVariants>
Link copied to clipboard
class TypeTagVector(val enumIndex: TypeTagVariants = TypeTagVariants.Vector, 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
data class U64(val value: ULong) : TransactionArgument
Link copied to clipboard
@Serializable
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, 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