Enter Markets
Enters the user's address into Strike Protocol markets.
markets(any[]) An array of strings of markets to enter, meaning use those supplied assets as collateral.[options](CallOptions) Call options and Ethers.js overrides for the transaction. A passedgasLimitwill be used in both theapprove(if not supressed) andminttransactions.RETURN(object) Returns an Ethers.js transaction object of the enterMarkets transaction.
const strike = new Strike(window.ethereum);
(async function () {
const trx = await strike.enterMarkets(Strike.ETH); // Use [] for multiple
console.log('Ethers.js transaction object', trx);
})().catch(console.error);Last updated
Was this helpful?