Skip to main content
To complete a staking or withdrawal operation on Ethereum, sign the unsigned transaction provided by the Staking API and broadcast it to the network.
1

Prepare the transaction

Retrieve an unsigned serialized transaction from the relevant API endpoint, e.g., staking/direct/tx/deposit or staking/direct/tx/withdrawal.
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 Ethereum network by making a POST request to /api/v1/eth/transactions.
  • network — environment in which the transaction is processed.
  • signedTransaction— signed transaction which needs to be broadcast to the network.
Example response:
  • broadcastedAt— time of transaction being broadcasted.
  • from— sender address for this transaction.
  • gas— gas consumed to broadcast transaction.
  • status— transaction status: pending, success.
  • to— recipient address for this transaction.
  • transactionHash— hash of the transaction.