stellar-api
stellar-api copied to clipboard
Get hash from base64 xdr transaction
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.