I want to create a market ID and pool on Raydium using JS/TS.
The transaction has been completed, but it does not appear on Solscan.
edited:
Create Market Transactions : [ '3zBEqtsNTcnio8wxZHmKXqgS4GNL7BXibzHmLVYKZZjTZfWxuDyya6xBWubyTXoEX7yys4QUvvRBeFQXorHjyHmi', '3AXtbuaMrVZtWYgC5MVh9U3zAR9crrN4dFZK73shXBsncPTM65EUofjp9AiqMSX3UBdytVLQXnrZkAkPqpa7KRcm' ]
Market ID : PublicKey [PublicKey(HrRmmPNb4YzSk85z4y3PEmdrey3nYbYvkSzT5U9Fi5ue)] { _bn: <BN: fa6475c5a17175376f64f74f83250182d376f5d22da0191dd36ee5d390b81785> }
Here is the code for creating marketID
async function createMarket() {
try {
const createMarketInstruments = await MarketV2.makeCreateMarketInstructionSimple({
connection,
wallet: userWallet.publicKey,
baseInfo: {
mint: new PublicKey('6dPMkw1325CQZ5HAknCrr4PBRsJHL46kFAcwXmCVDhqv'),
decimals: 6
},
quoteInfo: {
mint: new PublicKey('GkpuJkzdV13qGaif9ZHFnfodiDHY6pz7jBhvnCaLJP2g'),
decimals: 6
},
lotSize: 1,
tickSize: 0.01,
dexProgramId: DEVNET_PROGRAM_ID.OPENBOOK_MARKET,
makeTxVersion: TxVersion.V0,
})
const txids = await buildAndSendTx(createMarketInstruments.innerTransactions, { skipPreflight: true })
console.log('Create Market Transactions :', txids)
return marketId
}
catch (err) {
console.log("err: ", err)
return err
}
}