- Create a delegate request.
- Sign and send the transaction to the network.
1
Create delegate request
Send a POST request to /api/v2/monad/{network}/delegators/{delegatorAddress}/stakes/delegations.Example request (for
testnet network):-
delegatorAddress— delegator address on the Monad network. -
amount— amount of tokens to delegate in Wei (1 MON = 10¹⁸ Wei). -
gas— computational effort required to execute the transaction measured in gas units (optional). If not specified, the values will be set due to the network load.priorityPricePerGas— 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 validators to prioritize this transaction.maxPricePerGas— 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.
-
amount— amount of tokens to delegate in Wei (1 MON = 10¹⁸ Wei). -
createdAt— timestamp of the transaction in the ISO 8601 format. -
delegatorAddress— delegator address on the Monad network. -
gas— computational effort required to execute the transaction measured in gas units:gasLimit— maximum gas limit for the transaction.priorityPricePerGas— 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 validators to prioritize this transaction.maxPricePerGas— 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.
-
unsignedTransaction— unsigned transaction in the hexadecimal format. Sign the transaction and submit it to the blockchain to perform the called action. -
validatorId— ID of the validator to which tokens are delegated.
2
Sign and send transaction
Use
unsignedTransaction to sign and send the transaction to the Monad network.To check the transaction status, send a GET request to /api/v2/monad/{network}/transactions/{transactionHash}/status.Example request (for testnet network):transactionHash— hash of the transaction.
transactionHash— hash of the transaction.status— transaction status:pending,success,revertedorunknown.blockNumber— unique identifier of the block in which the transaction has been included. Only defined if the transaction status issuccessorreverted.gasUsed— amount of gas spent for the transaction.createdAt— timestamp of the transaction in the ISO 8601 format.