stellar-api icon indicating copy to clipboard operation
stellar-api copied to clipboard

Get hash from base64 xdr transaction

Open sui77 opened this issue 5 years ago • 0 comments

When creating a transaction from an XDR string it's not possible to ->getHash(), cause the TransactionBuilder is lacking a Server instance. Quick solution for me was to optionally pass it to TransactionEnvelope::fromXdr() - maybe not the most elegant fix but I didn't get into detail.

Also added an example for verifying signers.

sui77 avatar Dec 08 '18 18:12 sui77