Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 RIDE 编写智能合约,我需要将发件人地址作为字符串获取,是否可以在 RIDE 中实现?
是的,这是可能的。你可以得到如下的字符串地址:
let senderAddress = addressFromPublicKey(tx.senderPublicKey)
或者
let senderAddress= toBase58String(addressFromPublicKey(tx.senderPublicKey).bytes)