1

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?

Macie
  • 37
  • 3

1 Answers1

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