Getting Started

The single nominator pool is an alternative type of the TON smart contract designed for validators that have enough self stake to validate by themselves without relying on third-party nominators stakes.

To start using the Staking API and nominate individually with a validator on the TON network:

  1. Create a stake transaction.
  2. Sign and broadcast it to the network.

Get an authentication token to start using Staking API.

Request examples are provided using cURL.

To create a stake transaction:

  1. Send a POST request to /api/v1/ton/{network}/staking/single-nominator/stake.

    Example request (for testnet network):

    curl --request POST \
         --url https://api.p2p.org/api/v1/ton/testnet/staking/single-nominator/stake \
         --header 'accept: application/json' \\
     		 --header 'authorization: Bearer <token>' \\
     		 --header 'content-type: application/json' \\
     		 --data '
    {
      "walletAddress": "EQCJkysqW3iwTGXDsC7BaCMxsFN3cBt9S6X8TS3V6FB5l4nB",
      "amount": "1000000"
    }'
    
    • walletAddress — main account address of the bounceable type which keeps tokens.

    • amount — amount of tokens to stake in TON. Note that the minimum staking amount is not limited, but there is a maximum cap of 2 000 000 TON for each pool.
      Example response:

    {
      "result": {
        "unsignedTransaction": "0x2102040605100096b33e0a9647f13198ad16a2812c549a363646a3a7ddbdcc5590f5839c408c6200767f36484b1e2acf5c265c7a64bfb46e95259c66a8189bbcd216195def43685200c21ad1e5198cc0dc3b0f9f43a50f292678f63235ea321e59385d7ee45a7208360018164fa6f9ce28792fb781185e8de4e6eaae34c0f545e5864952fe23c183df0c",
        "walletAddress": "EQCJkysqW3iwTGXDsC7BaCMxsFN3cBt9S6X8TS3V6FB5l4nB",
        "validatorAddress": "Ef8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAU",
        "amount": "1000000",
        "createdAt": "2024-10-10T14:49:23.998Z"
      }
    }
    
    • unsignedTransactionunsigned transaction in the hexadecimal format. Sign the transaction and submit it to the blockchain to perform the called action.

    • walletAddress — main account address of the bounceable type which keeps tokens.

    • validatorAddress — validator's address.

    • amount — amount of tokens to stake in TON.

    • createdAt — timestamp of the transaction in the ISO 8601 format.

  2. Sign and broadcast the unsignedTransaction to the TON network.

What's Next?