Network Difficulty
6577024
Hash Rate
6.000 MH/s
Avg Block Time
18.2155s
Total Supply
16768834
Mempool
Fee per KB
0
Block Size Limit
0.00 kB
← Back to Explorer

Transaction Details

SMART CONTRACT

Smart Contract State

SCID Reserves

SCID Amount (Atomic Units)
0000000000000000000000000000000000000000000000000000000000000000 0

String Variables

Key Value
C 2f2a20536170446963652e64766d20e280942050312070726f7661626c792d666169722074776f2d7061727479206f7665722f756e646572206469636520285032502c2066616d696c792041292e0a0a202020457874656e6473207468652070726f76656e205361704475656c2028503029207061747465726e2066726f6d20434153494e4f5f5350454320c2a731382e31413a2074776f0a202020706c617965727320626574206f70706f73697465207369646573206f662061207468726573686f6c642c206e6f20686f7573652c206e6f206f70657261746f7220656467652e0a202020506c61796572204120626574732074686520726f6c6c2077696c6c206265204f5645522061207468726573686f6c642c20706c617965722042206265747320554e4445522e0a20202052616b6520726f7574656420746f20612068617264636f64656420636f6c6c6563746f7220617420736574746c65202861746f6d69632077697468207061796f7574292e0a0a202020466169726e6573733a2044564d2052414e444f4d28292069732070726f746f636f6c2d73656375726520286b65796564204b656363616b28534349442c20424c49442c205458494429293b0a202020424c4944206f66207468652066757475726520536574746c6520747820697320756e6b6e6f7761626c6520746f207468652063616c6c65722c20736f206e6569746865720a202020706c617965722063616e2070726564696374206f7220696e666c75656e636520746865206f7574636f6d65202873616d6520726174696f6e616c65206173205361704475656c292e0a0a202020526f6c6c2073706163653a2052414e444f4d2831303029202d3e20302e2e39392e20412077696e20636f6e646974696f6e20636f6e666967757261626c65206174206a6f696e3a0a20202020202d206f7665723a20412077696e7320696620726f6c6c203e3d207468726573686f6c642c20422077696e7320696620726f6c6c203c207468726573686f6c640a20202020202d20746865207468726573686f6c642073697473204245545745454e207468652074776f2062657473202841206f76657220542c204220756e6465722054292e0a2020205061796f75743a2077696e6e65722074616b657320706f74202d2072616b653b2072616b65202d3e20636f6c6c6563746f72202861746f6d6963292e0a0a2020204275696c642042207065722d706c6179657220657363726f77202b2074696d656c6f636b20726566756e647320286964656e746963616c20746f205361704475656c292e0a0a2020205061747465726e20736f757263653a205361704475656c2e64766d202873696d2d7665726966696564292e20416c6c206b65797320726177205349474e455228292e0a2a2f0a0a46756e6374696f6e20496e697469616c697a6528636f6c6c6563746f7220537472696e67292055696e7436340a3520202076657273696f6e2822312e302e3022290a313020204946205354524c454e28414444524553535f52415728636f6c6c6563746f722929203d3d203333205448454e20474f544f2034300a3230202052455455524e20310a3430202053544f524528226665655f627073222c20313029202020202020202020202020202f2a20302e3130252072616b6520e280942074756e65206c61746572202a2f0a3530202053544f52452822636f6c6c6563746f72222c20414444524553535f52415728636f6c6c6563746f7229290a3630202053544f52452822636f6c6c6563746564222c2030290a3730202053544f52452822736571222c2030290a3830202052455455524e20300a456e642046756e6374696f6e0a0a2f2a2041206f70656e7320612064696365206475656c3a20626574732060616d746020746861742074686520726f6c6c2077696c6c206265203e3d20607468726573686020286f766572292e0a2020205468726573686f6c64206d7573742062652073616e652028312e2e39382920736f20626f746820736964657320686176652061207265616c206368616e63652e202a2f0a46756e6374696f6e204f70656e4f76657228616d742055696e7436342c207468726573682055696e743634292055696e7436340a3520202076657273696f6e2822312e302e3022290a3130202064696d206e2c20762061732055696e7436340a323020204c45542076203d204445524f56414c554528290a3330202049462076203d3d20616d74205448454e20474f544f2036300a3430202052455455524e20310a36302020494620616d74203e3d2031205448454e20474f544f2039300a3730202052455455524e20310a39302020494620746872657368203e3d2031205448454e20474f544f203132300a3130302052455455524e20310a31323020494620746872657368203c3d203938205448454e20474f544f203135300a3133302052455455524e20310a313530204c4554206e203d204c4f414428227365712229202b20310a3136302053544f52452822736571222c206e290a3137302053544f52452822675f22202b206e202b20225f61222c205349474e45522829290a3138302053544f52452822675f22202b206e202b20225f616d74222c20616d74290a3139302053544f52452822675f22202b206e202b20225f746872657368222c20746872657368290a3230302053544f52452822675f22202b206e202b20225f626c6b41222c20424c4f434b5f4845494748542829290a3231302053544f52452822675f22202b206e202b20225f7374617465222c2031290a3232302052455455524e20300a456e642046756e6374696f6e0a0a2f2a2042206a6f696e732062657474696e672074686520554e4445522073696465206174207468652073616d6520616d6f756e742e202a2f0a46756e6374696f6e204a6f696e556e646572286e2055696e743634292055696e7436340a3520202076657273696f6e2822312e302e3022290a3130202064696d20762c20616d742061732055696e7436340a323020204c455420616d74203d204c4f41442822675f22202b206e202b20225f616d7422290a33302020494620616d74203e2030205448454e20474f544f2036300a3430202052455455524e20310a363020204946204c4f41442822675f22202b206e202b20225f73746174652229203d3d2031205448454e20474f544f2039300a3730202052455455524e20310a393020204c45542076203d204445524f56414c554528290a3130302049462076203d3d20616d74205448454e20474f544f203133300a3131302052455455524e20310a313330204946204558495354532822675f22202b206e202b20225f622229205448454e20474f544f203136300a31343020474f544f203137300a3136302052455455524e20310a3137302053544f52452822675f22202b206e202b20225f62222c205349474e45522829290a3138302053544f52452822675f22202b206e202b20225f626c6b42222c20424c4f434b5f4845494748542829290a3139302053544f52452822675f22202b206e202b20225f7374617465222c2032290a3230302052455455524e20300a456e642046756e6374696f6e0a0a2f2a20536574746c653a20726f6c6c2052414e444f4d28313030292e20496620726f6c6c203e3d207468726573682c204120286f766572292077696e733b20656c736520422028756e646572292e0a20202057696e6e65722074616b657320706f74202d2072616b652c2072616b65202d3e20636f6c6c6563746f722e2041746f6d69632e202a2f0a46756e6374696f6e20536574746c65286e2055696e743634292055696e7436340a3520202076657273696f6e2822312e302e3022290a3130202064696d2061416d742c2072616b652c20706f742c20726f6c6c2c207468726573682061732055696e7436340a323020204946204c4f41442822675f22202b206e202b20225f73746174652229203d3d2032205448454e20474f544f2035300a3330202052455455524e20310a353020204946204c4f41442822675f22202b206e202b20225f612229203d3d205349474e45522829205448454e20474f544f2038300a363020204946204c4f41442822675f22202b206e202b20225f622229203d3d205349474e45522829205448454e20474f544f2038300a3730202052455455524e20310a383020204c45542061416d74203d204c4f41442822675f22202b206e202b20225f616d7422290a393020204c455420706f74203d2061416d74202a20320a313030204c45542072616b65203d20706f74202a204c4f414428226665655f6270732229202f2031303030300a3131302049462072616b65203c20706f74205448454e20474f544f203134300a313230204c45542072616b65203d20706f74202f20320a313430204c455420746872657368203d204c4f41442822675f22202b206e202b20225f74687265736822290a313530204c455420726f6c6c203d2052414e444f4d2831303029202020202020202020202020202f2a20302e2e3939202a2f0a3136302053544f52452822675f22202b206e202b20225f726f6c6c222c20726f6c6c29202020202f2a207265636f726420666f722061756469746162696c697479202a2f0a31373020494620726f6c6c203e3d20746872657368205448454e20474f544f20323430202020202f2a204120286f766572292077696e73202a2f0a3139302053544f52452822636f6c6c6563746564222c204c4f41442822636f6c6c65637465642229202b2072616b65290a3230302053454e445f4445524f5f544f5f41444452455353284c4f41442822675f22202b206e202b20225f6222292c20706f74202d2072616b65290a3231302053454e445f4445524f5f544f5f41444452455353284c4f41442822636f6c6c6563746f7222292c2072616b65290a3232302053544f52452822675f22202b206e202b20225f7374617465222c2033290a3233302052455455524e20300a3234302053544f52452822636f6c6c6563746564222c204c4f41442822636f6c6c65637465642229202b2072616b65290a3235302053454e445f4445524f5f544f5f41444452455353284c4f41442822675f22202b206e202b20225f6122292c20706f74202d2072616b65290a3236302053454e445f4445524f5f544f5f41444452455353284c4f41442822636f6c6c6563746f7222292c2072616b65290a3237302053544f52452822675f22202b206e202b20225f7374617465222c2033290a3238302052455455524e20300a456e642046756e6374696f6e0a0a2f2a20526566756e642069662042206e65766572206a6f696e7320284127732077696e646f7720656c6170736573292e202a2f0a46756e6374696f6e20526566756e6441286e2055696e743634292055696e7436340a3520202076657273696f6e2822312e302e3022290a3130202064696d20616d742061732055696e7436340a323020204946204c4f41442822675f22202b206e202b20225f73746174652229203d3d2031205448454e20474f544f2035300a3330202052455455524e20310a353020204946204c4f41442822675f22202b206e202b20225f612229203d3d205349474e45522829205448454e20474f544f2038300a3630202052455455524e20310a38302020494620424c4f434b5f4845494748542829203e204c4f41442822675f22202b206e202b20225f626c6b412229202b20323030205448454e20474f544f203131300a3930202052455455524e20310a313130204c455420616d74203d204c4f41442822675f22202b206e202b20225f616d7422290a3132302053544f52452822675f22202b206e202b20225f7374617465222c2034290a3133302053454e445f4445524f5f544f5f41444452455353285349474e455228292c20616d74290a3134302052455455524e20300a456e642046756e6374696f6e0a0a2f2a20526566756e6420696620626f746820657363726f77656420627574206e6f626f647920736574746c65732e204569746865722070617274792070756c6c73206f776e206265742e202a2f0a46756e6374696f6e20526566756e64537475636b286e2055696e743634292055696e7436340a3520202076657273696f6e2822312e302e3022290a3130202064696d20616d742061732055696e7436340a323020204946204c4f41442822675f22202b206e202b20225f73746174652229203d3d2032205448454e20474f544f2035300a3330202052455455524e20310a35302020494620424c4f434b5f4845494748542829203e204c4f41442822675f22202b206e202b20225f626c6b422229202b20323030205448454e20474f544f2038300a3630202052455455524e20310a383020204946204c4f41442822675f22202b206e202b20225f612229203d3d205349474e45522829205448454e20474f544f203131300a393020204946204c4f41442822675f22202b206e202b20225f622229203d3d205349474e45522829205448454e20474f544f203131300a3130302052455455524e20310a313130204c455420616d74203d204c4f41442822675f22202b206e202b20225f616d7422290a31323020494620616d74203e2030205448454e20474f544f203135300a3133302052455455524e20310a3135302053544f52452822675f22202b206e202b20225f7374617465222c2034290a3136302053454e445f4445524f5f544f5f41444452455353285349474e455228292c20616d74290a3137302052455455524e20300a456e642046756e6374696f6e0a
collected 0
collector 09733afe4b78345f3651a1bf2f5f1ce1e329e8c347d055af74c1e151ee118e0c00
fee_bps 10
seq 0

Transaction Information

Root Hash
Built Height
7584874
Block
Timestamp
1788788117665
Timestamp (UTC)
2026-09-07 13:35:17
Block Age
12m 25s ago
Fee
0.07735
TX Size
6.629 kB
Version
1
Confirmations
43
Signature Type
DERO_HOMOMORPHIC

DERO Asset

2
Ring Size
0.07735
Fees
0.00000
Deposited
Sender
dero1qyyhxwh7fdurghek2xsm7t6lrns7x20gcdraq4d0wnq7z50wzx8qcqq9vvptz

Ring Members (2)

Smart Contract Details

SC Balance
0.00000 DERO

Smart Contract Code

Smart Contract Arguments

Name Type Value
SC_ACTION uint64 1
SC_CODE string "/* SapDice.dvm — P1 provably-fair two-party over/under dice (P2P, family A). Extends the proven SapDuel (P0) pattern from CASINO_SPEC §18.1A: two players bet opposite sides of a threshold, no house, no operator edge. Player A bets the roll will be OVER a threshold, player B bets UNDER. Rake routed to a hardcoded collector at settle (atomic with payout). Fairness: DVM RANDOM() is protocol-secure (keyed Keccak(SCID, BLID, TXID)); BLID of the future Settle tx is unknowable to the caller, so neither player can predict or influence the outcome (same rationale as SapDuel). Roll space: RANDOM(100) -> 0..99. A win condition configurable at join: - over: A wins if roll >= threshold, B wins if roll < threshold - the threshold sits BETWEEN the two bets (A over T, B under T). Payout: winner takes pot - rake; rake -> collector (atomic). Build B per-player escrow + timelock refunds (identical to SapDuel). Pattern source: SapDuel.dvm (sim-verified). All keys raw SIGNER(). */ Function Initialize(collector String) Uint64 5 version("1.0.0") 10 IF STRLEN(ADDRESS_RAW(collector)) == 33 THEN GOTO 40 20 RETURN 1 40 STORE("fee_bps", 10) /* 0.10% rake — tune later */ 50 STORE("collector", ADDRESS_RAW(collector)) 60 STORE("collected", 0) 70 STORE("seq", 0) 80 RETURN 0 End Function /* A opens a dice duel: bets `amt` that the roll will be >= `thresh` (over). Threshold must be sane (1..98) so both sides have a real chance. */ Function OpenOver(amt Uint64, thresh Uint64) Uint64 5 version("1.0.0") 10 dim n, v as Uint64 20 LET v = DEROVALUE() 30 IF v == amt THEN GOTO 60 40 RETURN 1 60 IF amt >= 1 THEN GOTO 90 70 RETURN 1 90 IF thresh >= 1 THEN GOTO 120 100 RETURN 1 120 IF thresh <= 98 THEN GOTO 150 130 RETURN 1 150 LET n = LOAD("seq") + 1 160 STORE("seq", n) 170 STORE("g_" + n + "_a", SIGNER()) 180 STORE("g_" + n + "_amt", amt) 190 STORE("g_" + n + "_thresh", thresh) 200 STORE("g_" + n + "_blkA", BLOCK_HEIGHT()) 210 STORE("g_" + n + "_state", 1) 220 RETURN 0 End Function /* B joins betting the UNDER side at the same amount. */ Function JoinUnder(n Uint64) Uint64 5 version("1.0.0") 10 dim v, amt as Uint64 20 LET amt = LOAD("g_" + n + "_amt") 30 IF amt > 0 THEN GOTO 60 40 RETURN 1 60 IF LOAD("g_" + n + "_state") == 1 THEN GOTO 90 70 RETURN 1 90 LET v = DEROVALUE() 100 IF v == amt THEN GOTO 130 110 RETURN 1 130 IF EXISTS("g_" + n + "_b") THEN GOTO 160 140 GOTO 170 160 RETURN 1 170 STORE("g_" + n + "_b", SIGNER()) 180 STORE("g_" + n + "_blkB", BLOCK_HEIGHT()) 190 STORE("g_" + n + "_state", 2) 200 RETURN 0 End Function /* Settle: roll RANDOM(100). If roll >= thresh, A (over) wins; else B (under). Winner takes pot - rake, rake -> collector. Atomic. */ Function Settle(n Uint64) Uint64 5 version("1.0.0") 10 dim aAmt, rake, pot, roll, thresh as Uint64 20 IF LOAD("g_" + n + "_state") == 2 THEN GOTO 50 30 RETURN 1 50 IF LOAD("g_" + n + "_a") == SIGNER() THEN GOTO 80 60 IF LOAD("g_" + n + "_b") == SIGNER() THEN GOTO 80 70 RETURN 1 80 LET aAmt = LOAD("g_" + n + "_amt") 90 LET pot = aAmt * 2 100 LET rake = pot * LOAD("fee_bps") / 10000 110 IF rake < pot THEN GOTO 140 120 LET rake = pot / 2 140 LET thresh = LOAD("g_" + n + "_thresh") 150 LET roll = RANDOM(100) /* 0..99 */ 160 STORE("g_" + n + "_roll", roll) /* record for auditability */ 170 IF roll >= thresh THEN GOTO 240 /* A (over) wins */ 190 STORE("collected", LOAD("collected") + rake) 200 SEND_DERO_TO_ADDRESS(LOAD("g_" + n + "_b"), pot - rake) 210 SEND_DERO_TO_ADDRESS(LOAD("collector"), rake) 220 STORE("g_" + n + "_state", 3) 230 RETURN 0 240 STORE("collected", LOAD("collected") + rake) 250 SEND_DERO_TO_ADDRESS(LOAD("g_" + n + "_a"), pot - rake) 260 SEND_DERO_TO_ADDRESS(LOAD("collector"), rake) 270 STORE("g_" + n + "_state", 3) 280 RETURN 0 End Function /* Refund if B never joins (A's window elapses). */ Function RefundA(n Uint64) Uint64 5 version("1.0.0") 10 dim amt as Uint64 20 IF LOAD("g_" + n + "_state") == 1 THEN GOTO 50 30 RETURN 1 50 IF LOAD("g_" + n + "_a") == SIGNER() THEN GOTO 80 60 RETURN 1 80 IF BLOCK_HEIGHT() > LOAD("g_" + n + "_blkA") + 200 THEN GOTO 110 90 RETURN 1 110 LET amt = LOAD("g_" + n + "_amt") 120 STORE("g_" + n + "_state", 4) 130 SEND_DERO_TO_ADDRESS(SIGNER(), amt) 140 RETURN 0 End Function /* Refund if both escrowed but nobody settles. Either party pulls own bet. */ Function RefundStuck(n Uint64) Uint64 5 version("1.0.0") 10 dim amt as Uint64 20 IF LOAD("g_" + n + "_state") == 2 THEN GOTO 50 30 RETURN 1 50 IF BLOCK_HEIGHT() > LOAD("g_" + n + "_blkB") + 200 THEN GOTO 80 60 RETURN 1 80 IF LOAD("g_" + n + "_a") == SIGNER() THEN GOTO 110 90 IF LOAD("g_" + n + "_b") == SIGNER() THEN GOTO 110 100 RETURN 1 110 LET amt = LOAD("g_" + n + "_amt") 120 IF amt > 0 THEN GOTO 150 130 RETURN 1 150 STORE("g_" + n + "_state", 4) 160 SEND_DERO_TO_ADDRESS(SIGNER(), amt) 170 RETURN 0 End Function "
collector string "dero1qyyhxwh7fdurghek2xsm7t6lrns7x20gcdraq4d0wnq7z50wzx8qcqq9vvptz"
entrypoint string "Initialize"

Prove Transaction

Prove that you sent DERO in this transaction. Obtain proof using the dero-wallet-cli command or from your wallet statement.

Note: The proof is sent to the server for verification calculations. Payload proofs are user-provided display proofs; for the strongest verification, confirm with the receiving wallet.

Raw Transaction Data