I'm writing a smart contract using RIDE and I need to get sender address as string, is it possible in RIDE to achieve that?
Asked
Active
Viewed 35 times
1 Answers
1
Yes it's possible. you can get the string address as following:
let senderAddress = addressFromPublicKey(tx.senderPublicKey)
Or
let senderAddress= toBase58String(addressFromPublicKey(tx.senderPublicKey).bytes)

Nazim Faour
- 804
- 4
- 6