Stellar

getStellarSignedTransaction

This function for :

  • .STELLAR - stellar (XLM)

  • .STELLAR_TA

  • .XLM_TESTNET - stellar testnet (XLMt)

  • .XLM_TA_TESTNET

Parameters

  • coinType: stellar networks coin type

  • stellarTransaction: (StellarTransation)stellar transaction parameter

class StellarTransaction

NameTypeDescription

txXDR

String

transaction that has not been signed of stellar transaction

key

String

sign key path for stellar transaction

Returns

  • result: (Bool) true if successful, false if error occurred

  • txData: signed transaction

Requirements

  • D'CENT Biometric Wallet version 2.1.0. or higher is required.

Example

let stellarTransaction : StellarTransaction = StellarTransaction(txXDR: "7ac33997544e3175d266bd022439b22cdb16508c01163f26e5cb2a3e1045a9790000000200000000d147b20efbeb51a8f8eea50f4ce1ad549796a509236c3cad056e22cf3e3e6f0b000000640005821d00000004000000010000000000000000000000005ec76b4a00000000000000010000000000000000000000005e3deafcf4bee3bf40a85e4f93bdf7d94e62a05e811ed787f9d04bc983ec207b0000000049504f8000000000", key: "m/44'/148'/0'")

DcentMgr.getStellarSignedTransaction(coinType: .STELLAR, stellarTransaction: stellarTransaction){ (result, txData) in
    print("stellar Transaction closure")
    if result == false {
        print("FAIL !!!")
    }else{
        print(txData)
    }
}

Last updated