ZKWallet
@interface ZKWallet : NSObject
Class containing send transaction methods.
Obtain an instance of this class by creating, unlocking or recovering user wallet.
−sendBtcTransaction:changeAccountId:to:value:feeRate:callback:
- (void)sendBtcTransaction:(nonnull NSString *)accountId
changeAccountId:(nonnull NSString *)changeAccountId
to:(nonnull NSString *)to
value:(nonnull NSString *)value
feeRate:(nonnull NSString *)feeRate
completion:(_Nonnull SendTransactionCompletionBlock)completionHandler {
Create and submit Bitcoin transaction to blockchain. For usage details see Send Transactions.
−sendEthTransaction:gasPrice:gasLimit:to:value:data:nonce:callback:
- (void)sendEthTransaction:(nonnull NSString *)accountId
gasPrice:(nonnull NSString *)gasPrice
gasLimit:(nonnull NSString *)gasLimit
to:(nullable NSString *)to
value:(nullable NSString *)value
data:(nullable NSString *)data
nonce:(nullable NSNumber *)nonce
completion:(_Nonnull SendTransactionCompletionBlock)completionHandler {
Create and submit Ethereum transaction to blockchain. For usage details see Send Transactions.