Skip to main content

1. Prepare the transaction

Obtain the unsignedTransaction object provided by a transaction builder or the relevant Staking 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

Send the signed transaction to the Story network by making a POST request to /api/v1/story/{network}/tx/send. Example request (for aeneid network):
  • signedTransaction — signed transaction in the hexadecimal format.
Example response:
  • transactionId — hash of the transaction included in the Story Protocol chain.
  • signerAccounts — list of account addresses that signed the transaction.
  • createdAt — timestamp of the transaction in the ISO 8601 format.