- Create an unstaking request.
- Create a withdrawal request.
Please noteThe unstaking process may take some time depending on the staking configuration. Make sure the lock-up period has passed before attempting to withdraw.
1
Create unstaking request
-
Send a POST request to /api/v1/story/{network}/staking/unstake.
Example request (for
aeneidnetwork):
-
delegatorAddress— delegator EVM Story account address. -
amount— amount of tokens to unstake in IP. -
gas— optional gas settings to execute the transaction:maxFeePerGas— maximum price per unit of gas this transaction will pay for the combined EIP-1559 block’s base fee and this transaction’s priority fee in Wei.maxPriorityFeePerGas— price per unit of gas in Wei, which is added to the EIP-1559 block’s base fee. This added fee is used to incentivize miners to prioritize this transaction.gasLimit— maximum gas limit for the transaction.
-
unsignedTransaction— serialized unsigned transaction in the hexadecimal format (RLP-encoded). Sign the transaction and submit it to the blockchain to perform the called action. Note that it must be signed and broadcasted within ~1 minute. -
createdAt— timestamp of the transaction in the ISO 8601 format.
- Use
unsignedTransactionto sign and send the signed transaction to the Story network.
2
Create withdrawal request
-
Send a POST request to /api/v1/story/{network}/staking/withdraw.
Example request (for
aeneidnetwork):
-
delegatorAddress— delegator EVM Story account address. -
amount— amount of tokens to withdraw in IP. -
gas— optional gas settings to execute the transaction:maxFeePerGas— maximum price per unit of gas this transaction will pay for the combined EIP-1559 block’s base fee and this transaction’s priority fee in Wei.maxPriorityFeePerGas— price per unit of gas in Wei, which is added to the EIP-1559 block’s base fee. This added fee is used to incentivize miners to prioritize this transaction.gasLimit— maximum gas limit for the transaction.
-
unsignedTransaction— serialized unsigned transaction in the hexadecimal format (RLP-encoded). Sign the transaction and submit it to the blockchain to perform the called action. Note that it must be signed and broadcasted within ~1 minute. -
createdAt— timestamp of the transaction in the ISO 8601 format.
- Use
unsignedTransactionto sign and send the signed transaction to the Story Protocol network.