How to use the xpring-common-js.Utils.transactionBlobToTransactionHash function in xpring-common-js

To help you get started, we’ve selected a few xpring-common-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xpring-eng / Xpring-JS / src / default-xpring-client.ts View on Github external
.then(async response => {
                  const transactionBlob = response.getTransactionBlob();
                  const transactionHash = Utils.transactionBlobToTransactionHash(
                    transactionBlob
                  );
                  if (!transactionHash) {
                    return Promise.reject(
                      new Error(XpringClientErrorMessages.malformedResponse)
                    );
                  }
                  return Promise.resolve(transactionHash);
                });
            }