Algorand
getAlgorandSignedTransaction
This function is for:
.ALGORAND(ALGO).ALGORAND_TESTNET(ALGO).ALGORAND_ASSET.ALGORAND_ASSET_TESTNET.ALGORAND_APP.ALGORAND_APP_TESTNET
Parameters
- coinType: algorand coin type
- transaction: (AlgorandTransaction)algorand transaction parameter
class AlgorandTransaction
| Name | Type | Description |
|---|---|---|
| hdKeyPath | Bip44KeyPath | sign key path for algorand transaction |
| sigHash | String | transaction that has not been signed of algorand transaction |
| decimals | String | transaction decimals of algorand transaction |
| symbol | String | transaction symbol of algorand transaction |
| fee | String | transaction fee of algorand transaction |
| nonce | String | Not used |
| optionParam | String | (optional)option parameter: - '03': APP ContractCall - '04': APP Opt-in - '05': ASSET FT Creation - '06': ASSET NFT Creation |
Returns
String- signed transaction
Requirements
- DCENT Biometric Wallet version 2.29.1 or higher is required.
Example
let algorandTransaction : AlgorandTransaction = AlgorandTransaction(sigHash: "54588aa3616d74cf000000174876e800a3666565cd03e8a26676ce01f60f1ca367656eac746573746e65742d76312e30a26768c4204863b518a4b3c84ec810f22d4f1081cb0f71f059a7ac20dec62f7f70e5093a22a26c76ce01f61304a46e6f7465c4084669727374205478a3726376c420568d5f7efc21a0928e50234dfa58764a84128d1c127971f6a26f350500d0ce24a3736e64c420302be92b2e5fb14e540554f3b652c0350fcc77ea53488fed81c97555179040c8a474797065a3706179", key: "m/44'/283'/0'/0/0", fee: "0.001", decimals: 6, symbol: "ALGO", optionParam: "00")
DcentMgr.getAlgorandSignedTransaction(coinType: .ALGORAND, algorandTransaction: algorandTransaction) { (result, txData) in
print("Algorand Transaction closure")
if result == false {
print("FAIL !!!")
}else{
print(txData)
}
}