@magiceden/magiceden-sdk
Version:
A TypeScript SDK for interacting with Magic Eden's API across multiple chains.
26 lines (25 loc) • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TransactionStrategy = void 0;
/**
* Transaction strategy
*
* SignAndSend: Sign and immediately send any transactions
*
* SignSendAndConfirm: Sign and send transactions, then wait for confirmation
*
* SignSendAndConfirm will be used by default if no strategy is provided.
* If you want to sign and send transactions async, use SignAndSend.
* This will allow you to continue executing some other code while the transactions are being sent, and you can check the status of the transactions later.
*/
var TransactionStrategy;
(function (TransactionStrategy) {
/**
* Sign and immediately send any transactions
*/
TransactionStrategy["SignAndSend"] = "signAndSend";
/**
* Sign and send transactions, then wait for confirmation
*/
TransactionStrategy["SignSendAndConfirm"] = "signSendAndConfirm";
})(TransactionStrategy || (exports.TransactionStrategy = TransactionStrategy = {}));