TON smart contract for NFT raffle
Last updated
Last updated
Made by
This smart contract allows you to raffle off on TON Blockchain. To do that, you need to deploy this contract, set the list of participants and transfer your NFT's to this contract.
To add participants you need to send internal message with opcode 2 and array of participant addresses. Here is an the example how to do it on javascript, it is using ton
package by :
You can do this multiple times and all the sent addresses will participate. Also several participants with same address are supported, this will increase probability to win for this address.
To choose winners you need to send internal message with opcode 1 and the array of NFT addresses. :
Here is the smart-contract source code: