Send Transaction
val userWalletAddress = "SOLANA_ADDRESS"
val transaction = Transaction()
... // transaction manipulation
BloctoSDK.shared.solana.signAndSendTransaction(
from: userWalletAddress,
transaction: transaction) { [weak self] result in
guard let self = self else { return }
self.resetSetValueStatus()
switch result {
case let .success(txHash):
// handle txHash here
case let .failure(error):
// handle error here
}
}Last updated
Was this helpful?