Injective
Injective
Injective can be accessed with the following coin types:
Environment | Coin Type | Faucet |
---|---|---|
Injective Production | injective | |
Injective Testnet | tinjective | https://testnet.faucet.injective.network |
Explorerhttps://explorer.injective.network/
Generating wallets
To create a Injective wallet using BitGoJS:
1 2 3 4 5 6 7 8 9 10 11
bitgo .coin('tinjective') .wallets() .generateWallet({ label: 'My Test Wallet', passphrase: 'secretpassphrase1a5df8380e0e30', }) .then(function (wallet) { // print the new wallet console.dir(wallet); });
To create a Injective wallet using the platform API:
1 2 3 4 5 6 7 8
LABEL="My Test Wallet" PASSPHRASE="secretpassphrase1a5df8380e0e30" curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $ACCESS_TOKEN" \ -d "{ \"label\": \"$LABEL\", \"passphrase\": \"$PASSPHRASE\" }" \ http://$BITGO_EXPRESS_HOST:3080/api/v2/tinjective/wallet/generate
Creating addresses
1 2 3 4 5 6 7 8 9 10 11
bitgo .coin('tinjective') .wallets() .getWallet({ id: '585c51a5df8380e0e3082e46' }) .then(function (wallet) { return wallet.createAddress(); }) .then(function (newAddress) { // print new address details console.dir(newAddress); });
1 2 3 4 5
WALLET=585c51a5df8380e0e3082e46 curl -X POST \ -H "Authorization: Bearer $ACCESS_TOKEN" \ https://app.bitgo-test.com/api/v2/tinjective/wallet/$WALLET/address
Staking
- Injective supports staking. Injective uses a delegated proof-of-stake (DPoS) consensus mechanism. Injective holders can stake their tokens to validators.
- Validators participate in consensus to produce new blocks and validate transactions.
- By staking Injective, holders can earn rewards.
Balances
The base unit of Injective is uinjective
(microinjective).
- 1 injective = 1,000,000 uinjective
- 1 uinjective = 0.000001 injective
To check the balance of a wallet:
1 2 3
const address = yield walletInstance.getAddress({ address: 'inj1drn3vzg6xep63ptaxsyhj6py5aj8fy3d4303p0' }); const bal = address.balance; return bal;
Tokens
Injective does not support tokens transactions.
Consolidation
We are supporting memo based addresses. Therefore, consolidation is not required.
Fee rate
The default gas fee is 0.35 uinjective