LogoLogo
  • Welcome!
  • The Protocol
    • Overview
    • Stakeholders
    • SecretTokens
    • Viewing Keys
    • Bridges
    • SEFI Token
    • CSHBK Token
    • Governance
  • User Guide
    • Swapping
    • Liquidity Providing
    • Tutorials
      • How to Buy SCRT in the U.S. Tutorial - Coinbase and Osmosis
      • Secret Ethereum Bridge (Video Tutorial)
      • Secret BSC Bridge (Video Tutorial)
      • Secret Monero Bridge (Video Tutorial) (1 of 4)
      • Secret Monero Bridge (Written Tutorial)
      • SecretSwap Full Length (Video Tutorial)
      • Trade & Earn Yield on SecretSwap (Written Tutorial)
      • Provide Liquidity on SecretSwap (Written Tutorial)
      • SEFI Governance (Written Tutorial)
    • Frequently Asked Questions
    • Glossary
  • Developer Guide
    • Create a New Pair
    • Factory
    • Query
    • Pair
  • Resources
    • Contract Addresses
Powered by GitBook
On this page
  1. Developer Guide

Create a New Pair

A pre-stored pair is used in this procedure. Token contract should be instantiated in advance.

The Factory JSON parameter for instantiation is below:

{
  "pair_code_id": 1,
  "pair_code_hash": "<HASH>",
  "token_code_id": 2,
  "token_code_hash": "<HASH>",
  "init_hook": { // optional
    "msg": "base64_encoded_json_data",
    "contract_addr": "secret...",
    "callback_code_hash": "<HASH>"
  }
}
PreviousGlossaryNextFactory

Last updated 3 years ago