# SNIP-21 Feedback

**URL:** https://forum.scrt.network/t/snip-21-feedback/3710
**Category:** Secret Contracts and Secret Apps
**Created:** [May 25, 2021, 10:35pm UTC](https://forum.scrt.network/t/snip-21-feedback/3710 "2021-05-25T22:35:14Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![stevenchang5000](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/stevenchang5000/32/1697_2.png) [@stevenchang5000](https://forum.scrt.network/u/stevenchang5000)
#### Post date: [May 25, 2021, 10:35pm UTC](https://forum.scrt.network/t/snip-21-feedback/3710/1 "2021-05-25T22:35:14Z")

</div>

To @reuven @toml @assafmo - Hey guys I had a good read of the merged pr and it looks great.

Sorry if I have asked this before but do you guys have a fully functioning demo token on holodeck? I’m curious to see how things would look on a transaction viewer etc.

---

<div class="post-metadata">

### Author: ![reuven](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/reuven/32/326_2.png) [@reuven](https://forum.scrt.network/u/reuven)
#### Post date: [May 26, 2021, 8:45am UTC](https://forum.scrt.network/t/snip-21-feedback/3710/2 "2021-05-26T08:45:31Z")

</div>

Hey there Steven!

We don’t have any deployed tokens yet, but we should be deploying a few example ones today.  
If you need a token for experimentation though, we can deploy one for you to play around with, where you’ll have minting permissions and all that. Just tell us what’s your testnet address.

---

<div class="post-metadata">

### Author: ![stevenchang5000](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/stevenchang5000/32/1697_2.png) [@stevenchang5000](https://forum.scrt.network/u/stevenchang5000)
#### Post date: [May 26, 2021, 9:21am UTC](https://forum.scrt.network/t/snip-21-feedback/3710/3 "2021-05-26T09:21:16Z")

</div>

Hey @reuven - my address is

secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr

Sounds great!

---

<div class="post-metadata">

### Author: ![reuven](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/reuven/32/326_2.png) [@reuven](https://forum.scrt.network/u/reuven)
#### Post date: [May 26, 2021, 12:50pm UTC](https://forum.scrt.network/t/snip-21-feedback/3710/4 "2021-05-26T12:50:50Z")

</div>

Here we go.  
After compiling the current master of the reference implementation at commit `b76b4b4`, I uploaded the contract like this:

```bash
secretcli tx compute store contract.wasm.gz --source 'https://github.com/enigmampc/snip20-reference-impl' --from my-key -y --gas 3000000

```

[transaction](https://secretnodes.com/secret/chains/holodeck-2/blocks/3022508/transactions/F2E8DCEC8A14477AEEEAAA6BA9FA15675A891F77EB393F38FCE3A81379B3B9D3), code id: 29215

and instantiated it like this:

```bash
secretcli tx compute instantiate 29215 '{"name": "Testnet BTN Group Token", "symbol": "BTN", "decimals": 6, "admin": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr", "initial_balances": [{"address": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr", "amount": "1000000000000"}], "prng_seed": "'"$(base64 <<<'A super secret seed')"'", "config": {"public_total_supply": true, "enable_deposit": true, "enable_redeem": true, "enable_mint": true, "enable_burn": true}}' --label 'btn.group-test-1' --from my-key -y --gas 200000

```

[transaction](https://secretnodes.com/secret/chains/holodeck-2/blocks/3022626/transactions/0936F71D330F65CB2C9B24D87460B086ECD58460C39E32E7C05292F0FA987B1B), address: [**secret1p6fur674dumdqz5r9rsxefjh7tcsvu2y4a5pue**](https://secretnodes.com/secret/chains/holodeck-2/contracts/secret1p6fur674dumdqz5r9rsxefjh7tcsvu2y4a5pue)

formatted instantiation message:

```json
{
  "name": "Testnet BTN Group Token",
  "symbol": "BTN",
  "decimals": 6,
  "admin": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr",
  "initial_balances": [
    {
      "address": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr",
      "amount": "1000000000000"
    }
  ],
  "prng_seed": "QSBzdXBlciBzZWNyZXQgc2VlZAo=",
  "config": {
    "public_total_supply": true,
    "enable_deposit": true,
    "enable_redeem": true,
    "enable_mint": true,
    "enable_burn": true
  }
}

```

Please note that you do not want the `enable_deposit` and `enable_redeem` settings set to true in production, but i enabled them for you here so you can experiment with how deposit/redeem would look like in the transaction history.

Your account got an initial balance of 1\_000\_000 BTN, which is set to have 6 decimals (like SCRT and SEFI). You can play around with those parameters yourself if you want to by running the instantiate command again with a changed message, which will create a new contract with the same code.

This token does not yet include the features from SNIP-23 as those are not merged yet and might change.

Enjoy!

---

<div class="post-metadata">

### Author: ![stevenchang5000](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/stevenchang5000/32/1697_2.png) [@stevenchang5000](https://forum.scrt.network/u/stevenchang5000)
#### Post date: [May 28, 2021, 3:33am UTC](https://forum.scrt.network/t/snip-21-feedback/3710/5 "2021-05-28T03:33:05Z")

</div>

Hey guys,

I’ve loaded up a SNIP-21 demo token with a bunch of different transactions for people to have a look at the response etc.

[https://btn.group/secret\_network/smart\_contract\_interface](https://btn.group/secret_network/smart_contract_interface)

Config to get results:

1. Environment: Staging / Testnet
2. Contract address: secret1p6fur674dumdqz5r9rsxefjh7tcsvu2y4a5pue
3. Function name: transaction\_history
4. params:

- key: api\_key\_0IUwZLnAJFV2sl+psxnmoONzgaQnKMi2PuR8y2nuxxs=
- address: secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr
- page\_size: 100

cc @reuven

Let me know if anyone wants me to make them a minter etc.  
Will work this into our transactions page and let the community know soon after.

---

<div class="post-metadata">

### Author: ![mohammedpatla](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/mohammedpatla/32/739_2.png) [@mohammedpatla](https://forum.scrt.network/u/mohammedpatla)
#### Post date: [May 28, 2021, 4:43am UTC](https://forum.scrt.network/t/snip-21-feedback/3710/6 "2021-05-28T04:43:49Z")

</div>

When i use those parameters i get  
`query contract failed: encrypted: {"parse_err":{"msg":"missing field `address`","target":"snip20_reference_impl::msg::QueryMsg"}} (HTTP 500)`

Not sure if I am missing something

---

<div class="post-metadata">

### Author: ![stevenchang5000](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/stevenchang5000/32/1697_2.png) [@stevenchang5000](https://forum.scrt.network/u/stevenchang5000)
#### Post date: [May 28, 2021, 4:46am UTC](https://forum.scrt.network/t/snip-21-feedback/3710/7 "2021-05-28T04:46:29Z")

</div>

@mohammedpatla

 ![Screen Shot 2021-05-28 at 2.45.49 pm](https://canada1.discourse-cdn.com/flex035/uploads/enigma1/original/2X/e/e54a8f64bd2b55e0b93384dc4fef386ba7f5b4a1.png)

---

<div class="post-metadata">

### Author: ![mohammedpatla](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/mohammedpatla/32/739_2.png) [@mohammedpatla](https://forum.scrt.network/u/mohammedpatla)
#### Post date: [May 28, 2021, 4:51am UTC](https://forum.scrt.network/t/snip-21-feedback/3710/8 "2021-05-28T04:51:56Z")

</div>

Ah makes sense now, page\_size is a number.

Works good gets me a response.

```auto
  "transaction_history": {
    "txs": [
      {
        "id": 7,
        "action": {
          "burn": {
            "burner": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr",
            "owner": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr"
          }
        },
        "coins": {
          "denom": "BTN",
          "amount": "1"
        },
        "memo": "burn from test",
        "block_time": 1622172304,
        "block_height": 3045556
      },
      {
        "id": 6,
        "action": {
          "mint": {
            "minter": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr",
            "recipient": "secret1raga8u0ap8cqqrtu36jyttm4l27xv4cs5e4hk3"
          }
        },
        "coins": {
          "denom": "BTN",
          "amount": "1"
        },
        "memo": "mint test",
        "block_time": 1622171839,
        "block_height": 3045477
      },
      {
        "id": 5,
        "action": {
          "burn": {
            "burner": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr",
            "owner": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr"
          }
        },
        "coins": {
          "denom": "BTN",
          "amount": "666"
        },
        "block_time": 1622170393,
        "block_height": 3045249
      },
      {
        "id": 4,
        "action": {
          "burn": {
            "burner": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr",
            "owner": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr"
          }
        },
        "coins": {
          "denom": "BTN",
          "amount": "666"
        },
        "block_time": 1622170307,
        "block_height": 3045237
      },
      {
        "id": 3,
        "action": {
          "transfer": {
            "from": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr",
            "sender": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr",
            "recipient": "secret1raga8u0ap8cqqrtu36jyttm4l27xv4cs5e4hk3"
          }
        },
        "coins": {
          "denom": "BTN",
          "amount": "777000000"
        },
        "block_time": 1622170055,
        "block_height": 3045198
      },
      {
        "id": 2,
        "action": {
          "transfer": {
            "from": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr",
            "sender": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr",
            "recipient": "secret1raga8u0ap8cqqrtu36jyttm4l27xv4cs5e4hk3"
          }
        },
        "coins": {
          "denom": "BTN",
          "amount": "333000000"
        },
        "block_time": 1622170000,
        "block_height": 3045188
      },
      {
        "id": 1,
        "action": {
          "mint": {
            "minter": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr",
            "recipient": "secret1zm55tcme6epjl4jt30v05gh9xetyp9e3vvv6nr"
          }
        },
        "coins": {
          "denom": "BTN",
          "amount": "1000000000000"
        },
        "memo": "Initial Balance",
        "block_time": 1622032805,
        "block_height": 3022626
      }
    ],
    "total": 7
  }
}
```

---

<div class="post-metadata">

### Author: ![stevenchang5000](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/stevenchang5000/32/1697_2.png) [@stevenchang5000](https://forum.scrt.network/u/stevenchang5000)
#### Post date: [May 28, 2021, 5:51am UTC](https://forum.scrt.network/t/snip-21-feedback/3710/9 "2021-05-28T05:51:35Z")

</div>

I gotta say, I really like it. We will have to get keplr wallet to make some updates for that memo, but generally pretty awesome.
