- Create a staking request.
- Sign and send the transaction to the network.
1
Create staking request
Send a POST request to /api/v1/sei/{network}/staking/stake.Example request (for
atlantic-2 network):stashAccountAddress— stash account address which keeps tokens.memo— arbitrary text data to add to the transactions.amount— amount of tokens to stake in SEI.
-
amount— amount of tokens to stake. -
currency— currency of tokens:sei— Sei native staking token.usei— 1 SEI = 10⁶ uSEI.msei— 1 SEI = 10³ mSEI.
-
validatorAddress— address to which tokens are delegated. -
stashAccountAddress— delegator stash account address which keeps tokens. -
rewardDestinationAddress— reward destination account address. -
createdAt— timestamp of the transaction in the ISO 8601 format.
transactionData is the list of data fields to be used to construct the staking transactions:-
messages:typeUrl— Sei network operation type.delegatorAddress— delegator address.validatorAddress— validator address.amount— amount of tokens to stake.currency— currency of tokens.
-
fee— fee charged for the transaction.amount— amount of tokens.denom— currency of tokens:sei,usei, ormsei.gas— amount of spent for the transaction.
-
memo— arbitrary text data to add to the transactions. -
encodedBody— processable transaction data encoded in the hexadecimal format. -
encodedAuthInfo— authorization data, including fee, encoded in the hexadecimal format.
2
Sign and send transaction
Use
transactionData to sign and send the signed transaction to the Sei network.To check the transaction status, send a GET request to /api/v1/sei/{network}/transaction/status/{transactionHash}.Example request (for atlantic-2 network):transactionHash— hash of the transaction.
-
status— transaction status:success,failed. -
blockId— unique identifier of the block in which the transaction has been included. -
fee— total fee in SEI charged for processing the transaction. -
gas— computational effort required to execute the transaction, measured in gas units.used— amount of gas spent for the transaction.wanted— maximum gas limit that the transaction initiator was willing to consume for the transaction.
-
transactionHash— hash of the transaction.