TypeScript Code Examples
Last updated
Last updated
Memecoin Pools v1 are a subset of Dynamic AMM Pools. A Memecoin Pool v1 is a Dynamic AMM Pool that has a fee scheduler, with liquidity permanently locked at pool creation.
Memecoin Pools v1 can be integrated with platforms such as memecoin launchpads to support liquidity and trading for the token after it has graduated from the launchpad.
To create a new Memecoin Pool v1 or for integration purposes, you can use the Dynamic AMM TypeScript SDK with the code example highlighted below.
Dynamic AMM SDK:
NPM:
Dynamic AMM Program ID: Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB
Dynamic AMM API endpoints:
Devnet:
If you want to create an Alpha Vault along with your new pool, you also need to find a pool_config_key
that is mapped to a vault_config_key
that meets your requirements.
If none of the pool_config_key
in the list meet your requirements, please reach out to Meteora for a custom pool config key.
Using the example, update it with your pool config key selected and other parameters in order to create a Memecoin Pool - which is a Dynamic AMM Pool with a fee scheduler and with liquidity (LP tokens) locked to the user's own lock escrow account.
Please refer to the section under let allocations = [
In the config file, you can specify different wallet addresses to receive fees from the locked liquidity, and the % to allocate to each wallet. Multiple wallets are possible, but their allocations must add up to 100%.
Choose a suitable Pool and Fee Config by following the instructions .
What fee parameters to choose depends on your project's needs. You will need to look at the and choose a suitable pool_config_key
with your preferred fee parameters.
After you have selected your preferred pool_config_key
, reference this example: