m/44'/60'/0'/0.
Address conversion
You can easily convert between an Injective address and Ethereum address by using our utility functions in the@injectivelabs/sdk-ts package:
Deriving wallets
Using Injective utility classes- Example code snippet on how to derive Injective Account from a private key and/or a mnemonic phrase:
- Example code snipped on how to derive a public address from a public key:
- Example code snipped on how to derive an address from a private key:
- Example code snippet on how to derive Injective Account from a private key and/or a mnemonic phrase:
- Example code snipped on how to derive a public key from a private key:
Convert Cosmos address to Injective Address
As Injective has a different derivation path than the default Cosmos one, you need thepublicKey of the account to convert a Cosmos publicAddress to Injective one.
Here is an example of how to do it