How to use the xpring-common-js.SubmitSignedTransactionResponse 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 / test / fakes / fake-network-client.ts View on Github external
public static defaultSubmitSignedTransactionResponse(): SubmitSignedTransactionResponse {
    const submitSignedTransactionResponse = new SubmitSignedTransactionResponse();
    submitSignedTransactionResponse.setEngineResult("tesSUCCESS");
    submitSignedTransactionResponse.setEngineResultCode(0);
    submitSignedTransactionResponse.setEngineResultMessage(
      "The transaction was applied. Only final in a validated ledger."
    );
    submitSignedTransactionResponse.setTransactionBlob("DEADBEEF");

    return submitSignedTransactionResponse;
  }