Skip to main content
To sign and broadcast the transaction to the Gprah network, follow these steps:
  1. Prepare in JSON format. Obtain the unsignedTransactionData field from the Unified API (staking, approval, unstake, or withdrawal). This field contains the full EIP-1559 transaction as a JSON string.
  2. Sign the transaction using the following code:
Upon successful execution, the script prints the signed transaction in hexadecimal format, ready to be broadcasted:
  1. Broadcast the transaction to the Graph network by sending a POST request to /api/v1/unified/transaction/broadcast.