BetterCallDevClient
public class BetterCallDevClient
BetterCallDev (BCD) is an indexer/smart contract debugging tool, used for the Tezos blockchain. This class allows developers to interact with their API, to fetch data that would otherwise be impossible for a mobile app to fetch from the Tezos RPC
-
Dedicated BCD errors
See moreDeclaration
Swift
public enum BetterCallDevClientError : Error
-
Init a
BetterCallDevClient
with aNetworkService
and aTezosNodeClientConfig
.Declaration
Swift
public init(networkService: NetworkService, config: TezosNodeClientConfig)
Parameters
networkService
NetworkService
used to manage network communication.config
TezosNodeClientConfig
used to apss in settings.
-
Primarily the
TzKTClient
is used to fetch details on operations. However for more complex calls involving smart contracts, TzKT will only return limited error message info. BetterCallDev includles all the details needed to display messages. This function allows developers to query the detailed error message.Declaration
Swift
public func getMoreDetailedError(byHash hash: String, completion: @escaping ((BetterCallDevOperationError?, KukaiError?) -> Void))
Parameters
byHash
The hash String of the operation.
completion
Called with the result.