Search…
Welcome!
The Protocol
Overview
Stakeholders
SecretTokens
Viewing Keys
Bridges
SEFI Token
CSHBK Token
Governance
User Guide
Swapping
Liquidity Providing
Tutorials
Frequently Asked Questions
Glossary
Developer Guide
Create a New Pair
Factory
Query
Pair
Resources
Contract Addresses
Powered By
GitBook
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:
1
{
2
"pair_code_id"
:
1
,
3
"pair_code_hash"
:
"<HASH>"
,
4
"token_code_id"
:
2
,
5
"token_code_hash"
:
"<HASH>"
,
6
"init_hook"
:
{
// optional
7
"msg"
:
"base64_encoded_json_data"
,
8
"contract_addr"
:
"secret..."
,
9
"callback_code_hash"
:
"<HASH>"
10
}
11
}
Copied!
User Guide - Previous
Glossary
Next - Developer Guide
Factory
Last modified
3mo ago
Copy link