Bootstrap Pool
Setup a Pool for a pair of assets. The Pool account should be a LogicSig contract account.
Transaction Group
{
"txn": {
"type": "pay",
"rcv": "{POOL_ADDRESS}",
"snd": "{POOLER_ADDRESS",
"amt": 960000,
"fee": 1000,
"note": "",
...
},
"sig": "{POOLER_SIG}",
}{
"txn": {
"type": "appl",
"snd": "{POOL_ADDRESS}",
"apid": {VALIDATOR_APP_ID},
"apan": 1, // OnComplete: OptIn
"apaa": ['Ym9vdHN0cmFw', '{ASSET1_ID}', '{ASSET2_ID}'], // ['bootstrap', asset1ID, asset2ID]
"apas": [{ASSET1_ID}, {ASSET2_ID}], // or just [{ASSET1_ID}] if asset 2 is Algo
"fee": 1000,
...
},
"lsig": "{POOL_LOGICSIG}",
}Validator App State Changes
Global State
Pool Account Local State
Last updated
Was this helpful?