Can i sign the transaction on client side and send only signed data to NIS server using nem-sdk?
is there any facility for such using NEM?
i found a solution using the NEM APIs but i want a perticular method that does the same thing. Simply i just dont want to expose my private key
Need the following solution using NEM-SDK: https://docs.nem.io/ja/nem-dev-basics-docker/sending-xem
In that, in last they are sending transaction to NIS server
// initialise client
c = zerorpc.Client()
c.connect(“tcp://127.0.0.1:4242”)
// initialise transaction and signer data
tx={ “amount”: 11, “recipient”: “TAPWFJHCGV3GL3CZEERB3IGXPMBWNGGEZKAVPNFB”, “recipientPublicKey”: “”, “isMultisig”: False, “multisigAccount”: “”, “message”: “msg”, “isEncrypted”: False, “mosaics”: [] }
common={ “password”: “”, “privateKey”: “YOU_PRIVATE_KEY” }
// convert to json strings
str_common=json.dumps(common)
str_tx=json.dumps(tx)
// call remote procedure, passing string arguments
signed = c.sign(str_tx, str_common, “testnet”)
// post signed transaction to a NIS instance
url=“http://localhost:7890/transaction/announce”
response = requests.post(url, json=signed)
this line: response = requests.post(url, json=signed)
is there any facility available using nem-sdk for the same?
I know the way using preparestatement. I implemented that one but in that i have to expose private key.