All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.provenance.client.protobuf.extensions.MsgFees.kt Maven / Gradle / Ivy

There is a newer version: 1.19.1
Show newest version
package io.provenance.client.protobuf.extensions

import io.provenance.msgfees.v1.MsgFee
import io.provenance.msgfees.v1.QueryAllMsgFeesRequest
import io.provenance.msgfees.v1.QueryGrpc.QueryBlockingStub as BlockingMsgFees
import io.provenance.msgfees.v1.QueryGrpcKt.QueryCoroutineStub as CoroutineMsgFees

/**
 * Get a coin balance in the account at the supplied address.
 *
 * @return A list of [MsgFee]
 */
fun BlockingMsgFees.getAllMsgFees(): List =
    queryAllMsgFees(QueryAllMsgFeesRequest.getDefaultInstance()).msgFeesList

/**
 * Get a coin balance in the account at the supplied address.
 *
 * @return A list of [MsgFee]
 */
suspend fun CoroutineMsgFees.getAllMsgFees(): List =
    queryAllMsgFees(QueryAllMsgFeesRequest.getDefaultInstance()).msgFeesList




© 2015 - 2024 Weber Informatics LLC | Privacy Policy