JS wrapper response types

Response types

The Result interface is a generic interface that defines two properties:

  • completionKey: A String that represents a unique identifier for the result.

  • data: A generic type T that represents the actual data of the result. This interface is implemented by various classes in the io.bladewallet.bladesdk package, which represent the different types of responses that can be returned by the Blade API. The completionKey property is used to correlate the response with the original request, and the data property contains the actual data returned by the API.

interface Result<T>{
    var completionKey: String
    var data: T
}

This is a data class definition for BladeJSError with two properties: name and reason. In this case, BladeJSError has two properties: name and reason. The purpose of this class is to hold information about an error that occurred in the context of BladeJS, with the name property indicating the type of the error and the reason property providing more detailed information about what went wrong.

data class BladeJSError(
    var name: String,
    var reason: String
)   

ENUMs

BladeEnv

enum class BladeEnv(val value: String) {
    Prod("Prod"),
    CI("CI")
}

CryptoFlowServiceStrategy

CryptoKeyType

IPFSProvider

KeyType

ScheduleTransactionType

ScheduleTransferType

Data types

AccountInfoData

AccountInfoResponse

AccountPrivateData

AccountPrivateRecord

AccountPrivateResponse

BalanceData

BalanceDataToken

BalanceResponse

BladeJSError

CoinData

CoinDataDescription

CoinDataImage

CoinDataMarket

CoinGeckoPlatform

CoinInfoData

CoinInfoResponse

CoinItem

CoinListData

CoinListResponse

ContractFunctionParameter

ContractQueryData

ContractQueryRecord

ContractQueryResponse

CreatedAccountData

CreatedAccountResponse

CreateScheduleData

CreateScheduleResponse

CreateTokenData

CreateTokenResponse

EmergencyTransferData

EmergencyTransferResponse

IAssetQuote

ICryptoFlowAsset

ICryptoFlowQuote

ICryptoFlowQuoteService

InfoData

InfoResponse

IntegrationUrlData

IntegrationUrlResponse

IPFSProviderConfig

KeyRecord

NodeInfo

NodesData

NodesResponse

PrivateKeyData

PrivateKeyResponse

RemoteConfig

Response

Result

ResultData

ResultResponse

ScheduleTransactionTransfer

ScheduleTransactionTransferHbar

ScheduleTransactionTransferNFT

ScheduleTransactionTransferToken

SignMessageData

SignMessageResponse

SignVerifyMessageData

SignVerifyMessageResponse

SplitSignatureData

SplitSignatureResponse

StakingInfo

SwapQuotesData

SwapQuotesResponse

SwapResultData

SwapResultResponse

TokenDropData

TokenDropResponse

TransactionHistoryDetail

TransactionHistoryNftTransfer

TransactionHistoryPlainData

TransactionHistoryTransfer

TransactionReceiptData

TransactionReceiptResponse

TransactionsHistoryData

TransactionsHistoryResponse

TransakOrderInfoData

TransakOrderInfoResponse

Last updated