Terraport
Launch Terraport
  • Welcome to Terraport
  • Terraport FAQ
  • How To
    • Swap
    • Liquidity Providing
    • Staking
    • Liquid Staking
    • Farming
    • Leaderboard
      • Points
    • Launchpad
  • GOVERNANCE
    • Introduction
    • Proposal
    • Voting
  • SAFETY AND SECURITY
    • Audit
    • KYC
    • Bug Bounty
    • Safety and Risk Advice
      • Regulatory Advice
      • Terraport Advanced Products
      • Specific Risks of Cryptoassets
  • Developers
    • Mint Your CW20 Token
    • Create Your Own Pair
    • Query
  • Resources
    • Contracts
    • API
    • Roadmap
  • Sponsorship
    • Banner
  • Contact Us
    • Social Account & Communities
Powered by GitBook
On this page

Was this helpful?

  1. Developers

Create Your Own Pair

Instantiation by Contract Address

You can use the Terraport token factory contract.

  • The address on Terra Classic: terra1n75fgfc8clsssrm2k0fswgtzsvstdaah7la6sfu96szdu22xta0q57rqqr

The JSON message format is as follows:

{
  "create_pair": {
    "asset_infos": [
      {
        "token": {
          "contract_addr": "terra..."
        }
      },
      {
        "native_token": {
          "denom": "uluna"
        }
      }
    ]
  }
}

This is a JSON constructor of pair contract.

  • A token pair can be either, contract-based token, or terra-native token

    • asset_infos[x].token.contract_addr: Contract-basd token address is entered here.

    • asset_infos[x].native_token.denom: Terra native token denominator is entered here.

Then, you may execute the contract with the organized JSON above.

PreviousMint Your CW20 TokenNextQuery

Last updated 7 months ago

Was this helpful?