ctrl-Felix / mospy

Extendable python library for the cosmos ecosystem.
https://mospy.ctrl-felix.de/
39 stars 20 forks source link

can make a tia or inj address? #20

Closed viponedream closed 11 months ago

viponedream commented 11 months ago

can make a tia or inj address?

viponedream commented 11 months ago

injective has the different address between keplr

ctrl-Felix commented 11 months ago

Injective is using 60 as slip44 value

https://github.com/cosmos/chain-registry/blob/master/injective/chain.json#L13

The Tia one is the same as the default so that should work. I will give it a try later today

viponedream commented 11 months ago

thank for your replay. but injective addr is still wrong.

account = Account(
    seed_phrase = seed_phrase ,
    address_index = 0,
    hrp = 'inj',
    slip44 = 60,
)
print(f'addr: {account.address}')
ctrl-Felix commented 11 months ago

Celestia works for me

account = Account(
    seed_phrase="",
    hrp="celestia"
)

I've just checked Inj, they are using the eth algorithm. Pass eth=True on the Account instantiation and you should be fine