Skip to content
Cosmopediaby Unity Nodes
DiscussionsCosmos-SDKUse nametoken as staketokenForum ↗

Use nametoken as staketoken

Cosmos-SDK9 posts1,042 viewsLast activity Jul 2019
AR
arun1705OP
Jul 2019

I want to create an account without staketoken separately instead I want to use my nametoken as staketoken.I tried editing the genesis file but no solution for this yet.

PI
ping
Jul 2019

if can replace all staketoken with YOURTOKEN in genesis. or you can edit genesis generate code which has hardcode the denom as “stake”.

AR
arun1705
Jul 2019

I tried,replaced staketoken parameter with my custom token.It throws error then while collecting genesis txs as insufficient fund for delegation

PI
ping
Jul 2019

gentx --amount=10000000YOURTOKEN …

AR
arun1705
Jul 2019

fbd gentx --name jack --amount 100000fbtoken
ERROR: account firstbloodaccaddr1aqsmf6xzq0gg0fzhdy6h5re8jtvrugcqqe6amv is in genesis, but it only has 0fbtoken available to stake, not 100000fbtoken

PI
ping
Jul 2019

before this you need execute:

add-genesis-account …

AR
arun1705
Jul 2019

this are the steps i have followed correct me if am wrong.

AR
arun1705
Jul 2019

I got that thanks figured it out

PI
ping
Jul 2019

you add-genesis with token:“fbx” and gentx with “fbtoken” , You need put the same token name on both.

← Back to Discussions