Skip to main content

1. Prepare the transaction

Retrieve an unserialized transaction data from the relevant API endpoint, e.g., single-nominator/stake, ton-whales/unstake.

2. Sign the transaction

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

3. Send the transaction

Broadcast the transaction to the network by sending a POST request to /api/v1/ton/{network}/transactions/broadcast. Example request (for the testnet network):
  • signedTransaction — in the hexadecimal format which needs to be broadcasted to the network.
  • signature — external message signature, which has to be signed with the private key.
  • publicKey — public key of the nominator for the TON network.
  • walletVersion — version of the smart contract used by the wallet in the TON blockchain.
Example response:
  • messageHash — hash of the transaction.