Injective (INJ)
SDK functions on Cosmos protocol
We require the wallet compressed pubkey in transaction crafting methods. This pubkey is different from your wallet address, you wallet address is actually derived from the pubkey. To retrieve the pubkey, you can use our sdk as follow:
Stake
Craft a delegation transaction to the validator address provided.
It also links your stake to the kiln account id provided.
The amount to stake is in INJ.
Withdraw rewards
Craft a withdraw rewards transaction. Your available rewards are then transferred to your wallet instantaneously.
Unstake
Craft an undelegate transaction. Your stake then enters a 21 days unbonding period.
The amount to undelegate is optional and in INJ. If no amount is specified, your whole staked balance will be unstaked.
Redelegate
Craft a redelegate transaction from a validator to a new validator. This allows you to skip the 21 days unbonding period.
The amount to redelegate is optional and in INJ. If no amount is specified, your whole staked balance will be redelegated.
Sign
Sign a transaction by specifying the integration and the crafted transaction.
Here is an example showing how to sign a transaction with a fireblocks vault.
Checkout the setup fireblocks documentation to setup your vault.
Broadcast
Broadcast a signed transaction.
Get transaction status
Get the transaction status of a broadcasted transaction by providing its transaction hash.
Decode transaction
Decode a serialized transaction previously crafted. You can use this to get more information about a transaction prior to broadcast it such as the gas fees used, the function parameters etc.
Last updated