🎟️TON smart contract for NFT raffle
Made by TON Fruits
This smart contract allows you to raffle off NFT 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 tonwhales:
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:
Last updated