Skip to main content

1. Prepare the transaction

Retrieve an unsigned serialized transaction from the relevant API endpoint, e.g., staking/stake or staking/withdraw.

2. Sign the transaction

Use the P2P Signer SDK to sign the unsigned data following protocol specific configuration.

3. Send the transaction

Broadcast the signed transaction to the Sui network by sending a POST request to /api/v1/sui/{network}/transaction/send. Example request (for testnet network):
  • signedTransaction — signed transaction in the hexadecimal format which needs to be broadcasted to the network.
  • signature — signature of the staker account address.
Example response:
  • transactionDigest — hash of the transaction.
Use the transactionDigest object to check the transaction status via explorer, e.g., example of the broadcasted transaction.