Market Creation
Introduction
Market Creation via SolanaPortal allows users to create custom trading markets for tokens on the Solana blockchain. Creating a market establishes the necessary infrastructure for token trading, including order books and liquidity pools. This process is essential for tokens that need to become tradable on decentralized exchanges. After standard token creation, market creation specifically focuses on establishing the trading environment for an existing token. This method is ideal for token creators who want to enable trading for their tokens and provide liquidity opportunities for traders.
API Endpoint - Market Creation
This endpoint accepts JSON data and requires specific parameters to create a market successfully.
Required Parameters for Market Creation
Each parameter in the Market Creation API plays a vital role in defining how your token market functions on the Solana blockchain. Below is a detailed breakdown of all required parameters.
wallet_address
string
β
The public key of the wallet that will own the newly created market
mint
integer
β
The mint address of the token for which the market will be created
Parameter Explanations
1. wallet_address
The public key of the wallet that will own and manage the newly created market.
Example:
Ensure this is your Solana wallet address, as this wallet will have administrative rights over the market. This wallet will be responsible for signing the market creation transactions and will be associated as the market authority.
2. mint
The mint address of the token for which you want to create a market. This must be an existing token on the Solana blockchain.
Example:
This address uniquely identifies your token on the Solana blockchain. Make sure to use the correct mint address, as this cannot be changed after market creation.
The market will be created for the token based on the mint address provided.
Example Market Creation Request
Response Handling
After submitting your market creation request, you'll receive a response containing:
market_id
: A unique identifier for your newly created marketserializedTxns
: An array of serialized transactions that need to be signed and submitted
Transaction Signing and Submission
The market creation process requires signing and submitting multiple transactions. Here's how to handle them:
Submitting to Jito Bundle Service
For optimal execution, the signed transactions can be submitted as a bundle to Jito's bundle service:
Verifying Transaction Success
After submitting the bundle, you can verify the transaction status:
Important Notes
Transactions are bundled and sent to Jito for optimal execution and to ensure all transactions are processed in the correct order.
Market creation is a one-time process for each token - once created, the market can be used indefinitely.
The market_id returned in the response is crucial for future interactions with this market.
Market creation is a multi-step process that requires several on-chain transactions.
The wallet creating the market must have sufficient SOL to cover transaction fees.
After market creation, you may need to provide initial liquidity to enable trading.
Always verify transaction success by checking the provided Solscan links.
Next Steps
To learn how to implement complete Market Creation programmatically, visit the language-specific guides:
Last updated