GrpcClientInterface
interface GrpcClientInterface
The gRPC client for interacting with the IOTA blockchain.
Inheritors
| GrpcClient |
Functions
| Name | Summary |
|---|---|
| allCoins | abstract suspend fun allCoins(owner: Address, coinType: StructTag? = null, limit: UInt? = null): List<Coin> List all coins owned by an address, optionally filtered by coin type (the inner type T of Coin<T>), auto-paginating up to limit coins. If coin_type is None, coins of all types are returned. If limit is None, all coins are returned. |
| allDynamicFields | abstract suspend fun allDynamicFields(parent: ObjectId, limit: UInt? = null, readMask: List<GrpcDynamicFieldField>? = null): List<GrpcDynamicField> List all dynamic fields of an object, auto-paginating up to limit fields. If limit is None, all fields are returned. |
| allOwnedObjects | abstract suspend fun allOwnedObjects(owner: Address, objectType: StructTag? = null, limit: UInt? = null, readMask: List<GrpcOwnedObjectField>? = null): List<GrpcObject> List all objects owned by an address, optionally filtered by object type, auto-paginating up to limit objects. If limit is None, all objects are returned. |
| allPackageVersions | abstract suspend fun allPackageVersions(packageId: ObjectId, limit: UInt? = null): List<GrpcPackageVersion> List all versions of a Move package, auto-paginating up to limit versions. If limit is None, all versions are returned. |
| checkpointByDigest | abstract suspend fun checkpointByDigest(digest: CheckpointDigest, transactionsFilter: GrpcTransactionFilter? = null, eventsFilter: GrpcEventFilter? = null, readMask: List<GrpcCheckpointResponseField>? = null): GrpcCheckpointResponse Get a checkpoint by its digest. |
| checkpointBySequenceNumber | abstract suspend fun checkpointBySequenceNumber(sequenceNumber: ULong, transactionsFilter: GrpcTransactionFilter? = null, eventsFilter: GrpcEventFilter? = null, readMask: List<GrpcCheckpointResponseField>? = null): GrpcCheckpointResponse Get a checkpoint by its sequence number. |
| checkpointLatest | abstract suspend fun checkpointLatest(transactionsFilter: GrpcTransactionFilter? = null, eventsFilter: GrpcEventFilter? = null, readMask: List<GrpcCheckpointResponseField>? = null): GrpcCheckpointResponse Get the latest checkpoint. |
| checkpointsStream | abstract suspend fun checkpointsStream(startSequenceNumber: ULong? = null, endSequenceNumber: ULong? = null, transactionsFilter: GrpcTransactionFilter? = null, eventsFilter: GrpcEventFilter? = null, readMask: List<GrpcCheckpointResponseField>? = null): GrpcCheckpointStream Stream checkpoints across a range of sequence numbers. |
| checkpointsStreamFiltered | abstract suspend fun checkpointsStreamFiltered(startSequenceNumber: ULong? = null, endSequenceNumber: ULong? = null, transactionsFilter: GrpcTransactionFilter? = null, eventsFilter: GrpcEventFilter? = null, progressIntervalMs: UInt? = null, readMask: List<GrpcCheckpointResponseField>? = null): GrpcFilteredCheckpointStream Stream checkpoints across a range of sequence numbers, skipping checkpoints with no data matching the filters. |
| coinInfo | abstract suspend fun coinInfo(coinType: StructTag): GrpcCoinInfo Get information about a coin type, including its metadata, treasury, and regulated metadata. |
| coins | abstract suspend fun coins(owner: Address, coinType: StructTag? = null, pageSize: UInt? = null, pageToken: ByteArray? = null): GrpcCoinPage List a single page of coins owned by an address, optionally filtered by coin type (the inner type T of Coin<T>). If coin_type is None, coins of all types are returned. |
| dynamicFields | abstract suspend fun dynamicFields(parent: ObjectId, pageSize: UInt? = null, pageToken: ByteArray? = null, readMask: List<GrpcDynamicFieldField>? = null): GrpcDynamicFieldPage List a single page of dynamic fields of an object. |
| epoch | abstract suspend fun epoch(epoch: ULong? = null, readMask: List<GrpcEpochField>? = null): GrpcEpochInfo Get information about an epoch. If epoch is None, the current epoch is returned. |
| executeTransaction | abstract suspend fun executeTransaction(signedTransaction: SignedTransaction, checkpointInclusionTimeoutMs: ULong? = null, readMask: List<GrpcTransactionField>? = null): GrpcExecutedTransaction Execute a signed transaction. |
| executeTransactions | abstract suspend fun executeTransactions(transactions: List<SignedTransaction>, checkpointInclusionTimeoutMs: ULong? = null, readMask: List<GrpcTransactionField>? = null): GrpcExecutedTransactionResults Execute a batch of signed transactions. |
| health | abstract suspend fun health(thresholdMs: ULong? = null): GrpcHealthInfo Get the health of the node serving the gRPC service. |
| objects | abstract suspend fun objects(objectIds: List<ObjectId>, readMask: List<GrpcObjectField>? = null): GrpcObjectResults Get the latest version of objects by their ids. |
| objectsWithVersions | abstract suspend fun objectsWithVersions(requests: List<GrpcObjectRequest>, readMask: List<GrpcObjectField>? = null): GrpcObjectResults Get objects by their ids and optional versions. |
| ownedObjects | abstract suspend fun ownedObjects(owner: Address, objectType: StructTag? = null, pageSize: UInt? = null, pageToken: ByteArray? = null, readMask: List<GrpcOwnedObjectField>? = null): GrpcOwnedObjectPage List a single page of objects owned by an address, optionally filtered by object type. |
| packageVersions | abstract suspend fun packageVersions(packageId: ObjectId, pageSize: UInt? = null, pageToken: ByteArray? = null): GrpcPackageVersionPage List a single page of versions of a Move package. |
| referenceGasPrice | abstract suspend fun referenceGasPrice(): ULong Get the reference gas price of the current epoch, denominated in NANOS. |
| serviceInfo | abstract suspend fun serviceInfo(readMask: List<GrpcServiceInfoField>? = null): GrpcServiceInfo Get information about the gRPC service and the node serving it. |
| setBasicAuth | abstract fun setBasicAuth(username: String, password: String?) Set a basic auth Authorization header that is sent with every request. |
| setBearerAuth | abstract fun setBearerAuth(token: String) Set a bearer auth Authorization header that is sent with every request. |
| setMaxDecodingMessageSize | abstract fun setMaxDecodingMessageSize(limit: ULong) Set the maximum size in bytes that a response message can be. |
| simulateTransaction | abstract suspend fun simulateTransaction(transaction: Transaction, skipChecks: Boolean = false, readMask: List<GrpcSimulateField>? = null): GrpcSimulatedTransaction Simulate a transaction. |
| simulateTransactions | abstract suspend fun simulateTransactions(transactions: List<GrpcSimulateTransactionInput>, readMask: List<GrpcSimulateField>? = null): List<GrpcSimulatedTransactionResult> Simulate a batch of transactions. |
| transactionBuilder | abstract fun transactionBuilder(sender: Address): GrpcTransactionBuilder Create a new transaction builder with the given sender address, backed by this client. |
| transactions | abstract suspend fun transactions(digests: List<TransactionDigest>, readMask: List<GrpcTransactionField>? = null): GrpcExecutedTransactionResults Get transactions by their digests. |
| viewFunctionCall | abstract suspend fun viewFunctionCall(fqFunctionName: String, typeArgs: List<TypeTag> = listOf(), callArgs: List<MoveViewArg> = listOf(), readMask: List<GrpcViewFunctionCallField>? = null): GrpcViewFunctionCallOutputs Call a Move view function and read back what it returns, without submitting a transaction. |
| viewFunctionCalls | abstract suspend fun viewFunctionCalls(functionCalls: List<GrpcViewFunctionCallInput>, readMask: List<GrpcViewFunctionCallField>? = null): List<GrpcViewFunctionCallResult> Call a batch of Move view functions. |
| waitForTransaction | abstract suspend fun waitForTransaction(digest: TransactionDigest, waitFor: WaitForTransaction) Wait for the indexing (on the node) or finalization of a transaction by its digest, polling the node until then. Returns an error after 60s. |