RaffleMetadata
creatorstring
Address of the raffle creator
raffleAccountstring
The raffle account address
entrantsAccountstring
The entrants account address
endsAtstring<date-time>nullable
When the raffle ends
priceinteger
Price per ticket in the smallest unit of the currency
supplyintegernullable
Total number of tickets available
soldintegernullable
Number of tickets sold
ticketLimitintegernullable
Maximum number of tickets per entrant
wlCreatorsstring[]
Array of whitelist creator addresses
currencyMintstring
The mint address of the payment currency
entrantsstring[]
Array of entrant addresses
countByEntrant objectnullable
Map of entrant address to ticket count
property name*integer
winnerstringnullable
Address of the raffle winner
isPrizeClaimedboolean
Whether the prize has been claimed
Default value:
false
isClaimedboolean
Whether the raffle has been claimed
Default value:
false
isExpiredboolean
Whether the raffle has expired
Default value:
false
RaffleMetadata
{
"creator": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"raffleAccount": "Dyi3AeQcDKPhXLdsF2Avihh1ty43REGuCRGKvU8QEAAd",
"entrantsAccount": "DsSqaaKvuzkexQophftgPJqZqVi3Ki7VQcpGSwnXe9WZ",
"endsAt": "2024-01-22T10:00:00Z",
"price": 100000000,
"supply": 100,
"sold": 75,
"ticketLimit": 5,
"wlCreators": [
"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
],
"currencyMint": "So11111111111111111111111111111111111111112",
"entrants": [
"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
],
"countByEntrant": {
"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM": 3,
"DsSqaaKvuzkexQophftgPJqZqVi3Ki7VQcpGSwnXe9WZ": 2
},
"winner": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"isPrizeClaimed": false,
"isClaimed": false,
"isExpired": false
}