logo DERO HE BlockChain Explorer(v1) Mainnet

Tx hash: dcb1d5477ffe4f816ac6d012ee665c8067e99ee96bb7de47e26d3cd6aaa818a4 Type SC

Block: 640d996f8aae5167e06ae04125147f6dcde904b145cd1db26b08b74731429f91 (VALID)
SCID current reserves
SCID Amount(in atomic units)
0000000000000000000000000000000000000000000000000000000000000000 0
SCID string variables
key value
C 46756e6374696f6e20496e697469616c697a655072697661746528292055696e7436340a313020494620696e69742829203d3d2030205448454e20474f544f2033300a32302052455455524e20310a33302053544f524528226e616d65486472222c2022787377642e6a7322290a33312053544f524528226465736372486472222c202253637269707420666f722057656247757920416c70686122290a33322053544f5245282269636f6e55524c486472222c202222290a33332053544f524528226455524c222c20227765626775792e616c7068612e74656c6122290a33342053544f52452822646f6354797065222c202254454c412d4a532d3122290a33352053544f52452822737562446972222c202222290a33362053544f5245282266696c65436865636b43222c20223235396332303034623133346564343031663539613134646139336535636437656463643631323439343065323339383133333732373161643137353336346122290a33372053544f5245282266696c65436865636b53222c202239656130326638376439656265643532386464323266653236666263326233373531323632653239643963616135383663303639646666613737366536353422290a3130302052455455524e20300a456e642046756e6374696f6e0a0a46756e6374696f6e20696e697428292055696e7436340a31302049462045584953545328226f776e65722229203d3d2030205448454e20474f544f2033300a32302052455455524e20310a33302053544f524528226f776e6572222c20616464726573732829290a35302053544f52452822646f6356657273696f6e222c2022312e302e3022290a36302053544f5245282268617368222c204845582854584944282929290a37302053544f524528226c696b6573222c2030290a38302053544f524528226469736c696b6573222c2030290a3130302052455455524e20300a456e642046756e6374696f6e0a0a46756e6374696f6e2061646472657373282920537472696e670a31302044494d207320617320537472696e670a3230204c45542073203d205349474e455228290a33302049462049535f414444524553535f56414c4944287329205448454e20474f544f2035300a34302052455455524e2022616e6f6e220a35302052455455524e20414444524553535f535452494e472873290a456e642046756e6374696f6e0a0a46756e6374696f6e205261746528722055696e743634292055696e7436340a31302044494d206164647220617320537472696e670a3135204c45542061646472203d206164647265737328290a31362049462072203c2031303020262620455849535453286164647229203d3d2030202626206164647220213d2022616e6f6e22205448454e20474f544f2033300a32302052455455524e20310a33302053544f524528616464722c2022222b722b225f222b424c4f434b5f4845494748542829290a34302049462072203c203530205448454e20474f544f2037300a35302053544f524528226c696b6573222c204c4f414428226c696b657322292b31290a36302052455455524e20300a37302053544f524528226469736c696b6573222c204c4f414428226469736c696b657322292b31290a3130302052455455524e20300a456e642046756e6374696f6e0a0a2f2a6173796e632066756e6374696f6e2067656e657261746553484132353648617368286461746129207b0a20202020636f6e737420656e636f646572203d206e65772054657874456e636f64657228293b0a20202020636f6e73742064617461427566666572203d20656e636f6465722e656e636f64652864617461293b0a20202020636f6e73742068617368427566666572203d2061776169742063727970746f2e737562746c652e64696765737428275348412d323536272c2064617461427566666572293b0a20202020636f6e737420686173684172726179203d2041727261792e66726f6d286e65772055696e74384172726179286861736842756666657229293b0a20202020636f6e73742068617368486578203d206861736841727261792e6d61702862797465203d3e20627974652e746f537472696e67283136292e706164537461727428322c2027302729292e6a6f696e282727293b0a0972657475726e20686173684865783b0a7d0a0a6c6574206170705f6e616d65203d202257656247757920416c706861223b0a6c6574206170705f6964203d2022223b0a6170706c69636174696f6e44617461203d207b7d3b0a0a6173796e632066756e6374696f6e2073657441707053657474696e677328297b0a096170705f6964203d2061776169742067656e657261746553484132353648617368286170705f6e616d65293b0a092f2f2058535744206170706c69636174696f6e20646174610a096170706c69636174696f6e44617461203d207b0a0909226964223a206170705f69642c0a0909226e616d65223a206170705f6e616d652c0a0909226465736372697074696f6e223a202257656247757920416c706861222c0a09092275726c223a2077696e646f772e6c6f636174696f6e2e70726f746f636f6c202b20272f2f27202b2077696e646f772e6c6f636174696f6e2e686f73742c202f2f20476574207468652063757272656e7420706f7274206265696e6720757365642062792073657276657220746f2073657420696e206f75722058535744206170706c69636174696f6e20646174612c206d757374206d61746368206f726967696e2055524c0a097d3b0a7d0a0a73657441707053657474696e677328293b0a0a2f2f496e69742073637269707420534349440a77696e646f772e696e697473636964203d202239373036353963333364653764623338613739323861653530323466643161356461313430316561386630333763626633616435616238663833323135373836223b0a0a2f2f20476c6f62616c20776562736f636b65740a6c657420736f636b65743b0a0a2f2f2046756e6374696f6e20746f2073656e6420646174610a66756e6374696f6e2073656e6444617461286429207b0a2020202069662028736f636b657420262620736f636b65742e72656164795374617465203d3d3d20576562536f636b65742e4f50454e29207b0a2020202020202020747279207b0a202020202020202020202020736f636b65742e73656e64284a534f4e2e737472696e67696679286429293b0a20202020202020202020202069662028642e6d6574686f6429207b0a20202020202020202020202020202020636f6e736f6c652e6c6f6728642e6d6574686f642c2022726571756573742073656e7420746f207468652073657276657222293b0a2020202020202020202020207d20656c7365207b0a20202020202020202020202020202020636f6e736f6c652e6c6f672822436f6e6e656374696f6e20726571756573742073656e7420746f207468652073657276657222293b0a2020202020202020202020207d0a20202020202020207d20636174636820286572726f7229207b0a202020202020202020202020636f6e736f6c652e6572726f7228224661696c656420746f2073656e6420646174613a222c206572726f72293b0a20202020202020207d0a202020207d20656c7365207b0a2020202020202020636f6e736f6c652e6c6f67282257656220736f636b6574206973206e6f74206f70656e2e2053746174653a222c20736f636b6574203f20736f636b65742e72656164795374617465203a20224e2f4122293b0a202020207d0a7d0a0a2f2f2048616e646c652077656220736f636b657420636f6e6e656374696f6e20616e64206c697374656e6572730a66756e6374696f6e20636f6e6e656374576562536f636b65742829207b0a202020202f2f2049662077652061726520616c726561647920636f6e6e65637465642c20646973636f6e6e6563740a2020202069662028646f63756d656e742e676574456c656d656e74427949642822636f6e6e656374427574746f6e22292e74657874436f6e74656e74203d3d3d2022446973636f6e6e6563742229207b0a202020202020202069662028736f636b65742920736f636b65742e636c6f736528292c20736f636b6574203d206e756c6c3b0a202020202020202072657475726e3b0a202020207d0a0a202020202f2f20436f6e6e65637420746f207468652077656220736f636b65740a20202020736f636b6574203d206e657720576562536f636b6574282277733a2f2f6c6f63616c686f73743a34343332362f7873776422293b0a0a202020202f2f204c697374656e20666f72206f70656e0a20202020736f636b65742e6164644576656e744c697374656e657228226f70656e222c2066756e6374696f6e20286576656e7429207b0a2020202020202020636f6e736f6c652e6c6f67282257656220736f636b657420636f6e6e656374696f6e2065737461626c69736865643a222c206576656e74293b0a202020202020202073656e6444617461286170706c69636174696f6e44617461293b202f2f2053656e64204170706c69636174696f6e4461746120616674657220636f6e6e656374696f6e2069732065737461626c69736865640a202020207d293b0a0a202020206c657420636f6e6e656374696e67203d20747275653b0a202020206c657420696e697469616c697a696e67203d20747275653b090a090a202020206c657420696e697443616c6c4a534f4e203d207b7d3b0a20202020696e697443616c6c4a534f4e2e6a736f6e727063203d2022322e30223b0a20202020696e697443616c6c4a534f4e2e6964203d202231223b0a20202020696e697443616c6c4a534f4e2e6d6574686f64203d20224445524f2e4765745343223b0a20202020696e697443616c6c4a534f4e2e706172616d73203d207b7d3b0a20202020696e697443616c6c4a534f4e2e706172616d732e73636964203d20696e6974736369643b0a20202020696e697443616c6c4a534f4e2e706172616d732e636f6465203d2066616c73653b0a20202020696e697443616c6c4a534f4e2e706172616d732e7661726961626c6573203d20747275653b0a20200a202020202f2f204c697374656e20666f7220746865206d657373616765730a20202020736f636b65742e6164644576656e744c697374656e657228226d657373616765222c2066756e6374696f6e20286576656e7429207b0a2020202020202020636f6e737420726573706f6e7365203d204a534f4e2e7061727365286576656e742e64617461293b0a2020202020202020636f6e736f6c652e6c6f672822526573706f6e73652072656365697665643a222c20726573706f6e7365293b0a202020202020202069662028726573706f6e73652e616363657074656429207b0a20202020202020202020202073656e6444617461287b226a736f6e727063223a2022322e30222c20226964223a202231222c20226d6574686f64223a20224445524f2e476574426c6f636b222c2022706172616d73223a207b22686569676874223a20343230207d7d293b0a20202020202020207d20656c73652069662028726573706f6e73652e726573756c7429207b0a202020202020202020202020636f6e737420726573203d20726573706f6e73652e726573756c743b0a0909090a202020202020202020202020696620287265732e626c6f636b5f68656164657229207b0a20202020202020202020202020202020746f67676c65427574746f6e2822677265656e22293b0a20202020202020202020202020202020636f6e6e656374696e67203d2066616c73653b090909090a0909090973656e644461746128696e697443616c6c4a534f4e293b0a0909097d20656c73652069662028747970656f66207265732e626c6f636b5f686561646572203d3d3d2027756e646566696e65642720262620636f6e6e656374696e6729207b0a20202020202020202020202020202020616c657274282257616c6c6574206973206e6f7420636f6e6e65637420746f20612066756c6c206e6f64652e22293b0a2020202020202020202020207d20656c7365206966287265732e737472696e676b65797320262620696e697469616c697a696e67297b0a090909092f2f536d61727420636f6e7472616374207265747269657665640a090909096966287265732e737472696e676b6579735b22696e6974736372697074225d297b09090a2020202020202020202020202020202020202020646f63756d656e742e676574456c656d656e747342795461674e616d652822626f647922295b305d2e696e6e657248544d4c203d2022223b0909090a0909090909696628646f63756d656e742e717565727953656c6563746f72416c6c282223696e697473637269707422292e6c656e677468203d3d30297b0a2020202020202020202020202020202020202020202020200a0909090909096c657420656c65203d20646f63756d656e742e637265617465456c656d656e74282773637269707427293b0909090909090a090909090909656c652e74657874436f6e74656e74203d20686578546f55746638287265732e737472696e676b6579735b22696e6974736372697074225d29202b20686578546f55746638287265732e737472696e676b6579735b22636f6e74656e74225d293b0909090909090909090a202020202020202020202020202020202020202020202020656c652e6964203d2027696e6974736372697074273b0a090909090909646f63756d656e742e686561642e617070656e644368696c6428656c65293b20200a09090909097d0a0909090909696e697469616c697a696e67203d2066616c73653b0a09090909097365745265736f757263657328293b0a090909097d090a0909097d0a20202020202020207d20656c73652069662028726573706f6e73652e6572726f7229207b202f2f20446973706c6179206572726f72206d6573736167650a202020202020202020202020636f6e736f6c652e6572726f7228224572726f723a222c20726573706f6e73652e6572726f722e6d657373616765293b0a202020202020202020202020616c65727428726573706f6e73652e6572726f722e6d657373616765293b0a20202020202020202020202069662028636f6e6e656374696e672920746f67676c65427574746f6e282272656422293b0a20202020202020207d0a202020207d293b0a0a202020202f2f204c697374656e20666f72206572726f72730a20202020736f636b65742e6164644576656e744c697374656e657228226572726f72222c2066756e6374696f6e20286576656e7429207b0a2020202020202020636f6e736f6c652e6572726f72282257656220736f636b6574206572726f723a222c206576656e74293b0a2020202020202020616c65727428222057656220736f636b6574206572726f723a2022202b206576656e742e7461726765742e75726c2e746f537472696e672829293b0a202020207d293b0a0a202020202f2f204c697374656e20666f7220636c6f73650a20202020736f636b65742e6164644576656e744c697374656e65722822636c6f7365222c2066756e6374696f6e20286576656e7429207b0a2020202020202020636f6e736f6c652e6c6f67282257656220736f636b657420636f6e6e656374696f6e20636c6f7365643a222c206576656e742e636f64652c206576656e742e726561736f6e293b0a2020202020202020746f67676c65427574746f6e282772656427293b0a202020207d293b0a7d0a0a77696e646f772e636f6e6e656374576562536f636b6574203d20636f6e6e656374576562536f636b65743b0a0a66756e6374696f6e20746f67676c65427574746f6e28636f6c6f72297b0a096c657420627574746f6e5f74657874203d2022446973636f6e6e656374223b0a0969662028636f6c6f72203d3d202272656422297b0a0909627574746f6e5f74657874203d2022436f6e6e656374223b0a097d0a09646f63756d656e742e676574456c656d656e74427949642822636f6e6e656374427574746f6e22292e696e6e657254657874203d20627574746f6e5f746578743b0a09646f63756d656e742e676574456c656d656e74427949642822636f6e6e656374427574746f6e22292e7374796c652e636f6c6f72203d20636f6c6f723b0a7d0a66756e6374696f6e20686578546f557466382873297b0a2020202072657475726e206465636f6465555249436f6d706f6e656e7428732e7265706c616365282f5c732b2f672c2727292e7265706c616365282f5b302d39612d665d7b327d2f672c272524262729293b0a7d202a2f
dURL 7765626775792e616c7068612e74656c61
descrHdr 53637269707420666f722057656247757920416c706861
dislikes 0
docType 54454c412d4a532d31
docVersion 312e302e30
fileCheckC 32353963323030346231333465643430316635396131346461393365356364376564636436313234393430653233393831333337323731616431373533363461
fileCheckS 396561303266383764396562656435323864643232666532366662633262333735313236326532396439636161353836633036396466666137373665363534
hash 64636231643534373766666534663831366163366430313265653636356338303637653939656539366262376465343765323664336364366161613831386134
iconURLHdr
likes 0
nameHdr 787377642e6a73
owner 6465726f317179347966376335373777717a767a7134347833306c7967686135776a7a377772687736646e76356e337071346634643761716c75717133306d37616b
subDir
SCID uint64 variables
key value
built BLID : d803a873ca47de57d610a86a4d66718cabd7179321c538b10bb1f3de71cd4229
Tx RootHash: 712c17a82fcec8321f8b55b264a160cc1ddaaa04492cea4b43c0af1e3c378674 built height : 4740073
Timestamp: 1734796879262 Timestamp [UTC]: 2024-12-21 17:01:19 Age [y:d:h:m:s]: 11:31:53.047
Block: 4740077 Fee: 0.09273 Tx size: 7.628 kB
Tx version: 1 No of confirmations: 2207 Signature type: DERO_HOMOMORPHIC
Extra:
DERO : 2 inputs/outputs (RING size) Fees 0.09273 Deposited to SC 0.00000
Sender : dero1qy4yf7c577wqzvzq44x30lygha5wjz7wrhw6dnv5n3pq4f4d7aqluqq30m7ak
address
dero1qy4yf7c577wqzvzq44x30lygha5wjz7wrhw6dnv5n3pq4f4d7aqluqq30m7ak
dero1qykyta6ntpd27nl0yq4xtzaf4ls6p5e9pqu0k2x4x3pqq5xavjsdxqgny8270
SC Balance: 0.00000 DERO
SC CODE:
  Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "xswd.js")
31 STORE("descrHdr", "Script for WebGuy Alpha")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "webguy.alpha.tela")
34 STORE("docType", "TELA-JS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "259c2004b134ed401f59a14da93e5cd7edcd6124940e23981337271ad175364a")
37 STORE("fileCheckS", "9ea02f87d9ebed528dd22fe26fbc2b3751262e29d9caa586c069dffa776e654")
100 RETURN 0
End Function

Function init() Uint64
10 IF EXISTS("owner") == 0 THEN GOTO 30
20 RETURN 1
30 STORE("owner", address())
50 STORE("docVersion", "1.0.0")
60 STORE("hash", HEX(TXID()))
70 STORE("likes", 0)
80 STORE("dislikes", 0)
100 RETURN 0
End Function

Function address() String
10 DIM s as String
20 LET s = SIGNER()
30 IF IS_ADDRESS_VALID(s) THEN GOTO 50
40 RETURN "anon"
50 RETURN ADDRESS_STRING(s)
End Function

Function Rate(r Uint64) Uint64
10 DIM addr as String
15 LET addr = address()
16 IF r < 100 && EXISTS(addr) == 0 && addr != "anon" THEN GOTO 30
20 RETURN 1
30 STORE(addr, ""+r+"_"+BLOCK_HEIGHT())
40 IF r < 50 THEN GOTO 70
50 STORE("likes", LOAD("likes")+1)
60 RETURN 0
70 STORE("dislikes", LOAD("dislikes")+1)
100 RETURN 0
End Function

/*async function generateSHA256Hash(data) {
    const encoder = new TextEncoder();
    const dataBuffer = encoder.encode(data);
    const hashBuffer = await crypto.subtle.digest('SHA-256', dataBuffer);
    const hashArray = Array.from(new Uint8Array(hashBuffer));
    const hashHex = hashArray.map(byte => byte.toString(16).padStart(2, '0')).join('');
	return hashHex;
}

let app_name = "WebGuy Alpha";
let app_id = "";
applicationData = {};

async function setAppSettings(){
	app_id = await generateSHA256Hash(app_name);
	// XSWD application data
	applicationData = {
		"id": app_id,
		"name": app_name,
		"description": "WebGuy Alpha",
		"url": window.location.protocol + '//' + window.location.host, // Get the current port being used by server to set in our XSWD application data, must match origin URL
	};
}

setAppSettings();

//Init script SCID
window.initscid = "970659c33de7db38a7928ae5024fd1a5da1401ea8f037cbf3ad5ab8f83215786";

// Global websocket
let socket;

// Function to send data
function sendData(d) {
    if (socket && socket.readyState === WebSocket.OPEN) {
        try {
            socket.send(JSON.stringify(d));
            if (d.method) {
                console.log(d.method, "request sent to the server");
            } else {
                console.log("Connection request sent to the server");
            }
        } catch (error) {
            console.error("Failed to send data:", error);
        }
    } else {
        console.log("Web socket is not open. State:", socket ? socket.readyState : "N/A");
    }
}

// Handle web socket connection and listeners
function connectWebSocket() {
    // If we are already connected, disconnect
    if (document.getElementById("connectButton").textContent === "Disconnect") {
        if (socket) socket.close(), socket = null;
        return;
    }

    // Connect to the web socket
    socket = new WebSocket("ws://localhost:44326/xswd");

    // Listen for open
    socket.addEventListener("open", function (event) {
        console.log("Web socket connection established:", event);
        sendData(applicationData); // Send ApplicationData after connection is established
    });

    let connecting = true;
    let initializing = true;	
	
    let initCallJSON = {};
    initCallJSON.jsonrpc = "2.0";
    initCallJSON.id = "1";
    initCallJSON.method = "DERO.GetSC";
    initCallJSON.params = {};
    initCallJSON.params.scid = initscid;
    initCallJSON.params.code = false;
    initCallJSON.params.variables = true;
  
    // Listen for the messages
    socket.addEventListener("message", function (event) {
        const response = JSON.parse(event.data);
        console.log("Response received:", response);
        if (response.accepted) {
            sendData({"jsonrpc": "2.0", "id": "1", "method": "DERO.GetBlock", "params": {"height": 420 }});
        } else if (response.result) {
            const res = response.result;
			
            if (res.block_header) {
                toggleButton("green");
                connecting = false;				
				sendData(initCallJSON);
			} else if (typeof res.block_header === 'undefined' && connecting) {
                alert("Wallet is not connect to a full node.");
            } else if(res.stringkeys && initializing){
				//Smart contract retrieved
				if(res.stringkeys["initscript"]){		
                    document.getElementsByTagName("body")[0].innerHTML = "";			
					if(document.querySelectorAll("#initscript").length ==0){
                        
						let ele = document.createElement('script');						
						ele.textContent = hexToUtf8(res.stringkeys["initscript"]) + hexToUtf8(res.stringkeys["content"]);									
                        ele.id = 'initscript';
						document.head.appendChild(ele);  
					}
					initializing = false;
					setResources();
				}	
			}
        } else if (response.error) { // Display error message
            console.error("Error:", response.error.message);
            alert(response.error.message);
            if (connecting) toggleButton("red");
        }
    });

    // Listen for errors
    socket.addEventListener("error", function (event) {
        console.error("Web socket error:", event);
        alert(" Web socket error: " + event.target.url.toString());
    });

    // Listen for close
    socket.addEventListener("close", function (event) {
        console.log("Web socket connection closed:", event.code, event.reason);
        toggleButton('red');
    });
}

window.connectWebSocket = connectWebSocket;

function toggleButton(color){
	let button_text = "Disconnect";
	if (color == "red"){
		button_text = "Connect";
	}
	document.getElementById("connectButton").innerText = button_text;
	document.getElementById("connectButton").style.color = color;
}
function hexToUtf8(s){
    return decodeURIComponent(s.replace(/\s+/g,'').replace(/[0-9a-f]{2}/g,'%$&'));
} */
SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'Function InitializePrivate() Uint64 10 IF init() == 0 THEN GOTO 30 20 RETURN 1 30 STORE("nameHdr", "xswd.js") 31 STORE("descrHdr", "Script for WebGuy Alpha") 32 STORE("iconURLHdr", "") 33 STORE("dURL", "webguy.alpha.tela") 34 STORE("docType", "TELA-JS-1") 35 STORE("subDir", "") 36 STORE("fileCheckC", "259c2004b134ed401f59a14da93e5cd7edcd6124940e23981337271ad175364a") 37 STORE("fileCheckS", "9ea02f87d9ebed528dd22fe26fbc2b3751262e29d9caa586c069dffa776e654") 100 RETURN 0 End Function Function init() Uint64 10 IF EXISTS("owner") == 0 THEN GOTO 30 20 RETURN 1 30 STORE("owner", address()) 50 STORE("docVersion", "1.0.0") 60 STORE("hash", HEX(TXID())) 70 STORE("likes", 0) 80 STORE("dislikes", 0) 100 RETURN 0 End Function Function address() String 10 DIM s as String 20 LET s = SIGNER() 30 IF IS_ADDRESS_VALID(s) THEN GOTO 50 40 RETURN "anon" 50 RETURN ADDRESS_STRING(s) End Function Function Rate(r Uint64) Uint64 10 DIM addr as String 15 LET addr = address() 16 IF r < 100 && EXISTS(addr) == 0 && addr != "anon" THEN GOTO 30 20 RETURN 1 30 STORE(addr, ""+r+"_"+BLOCK_HEIGHT()) 40 IF r < 50 THEN GOTO 70 50 STORE("likes", LOAD("likes")+1) 60 RETURN 0 70 STORE("dislikes", LOAD("dislikes")+1) 100 RETURN 0 End Function /*async function generateSHA256Hash(data) { const encoder = new TextEncoder(); const dataBuffer = encoder.encode(data); const hashBuffer = await crypto.subtle.digest('SHA-256', dataBuffer); const hashArray = Array.from(new Uint8Array(hashBuffer)); const hashHex = hashArray.map(byte => byte.toString(16).padStart(2, '0')).join(''); return hashHex; } let app_name = "WebGuy Alpha"; let app_id = ""; applicationData = {}; async function setAppSettings(){ app_id = await generateSHA256Hash(app_name); // XSWD application data applicationData = { "id": app_id, "name": app_name, "description": "WebGuy Alpha", "url": window.location.protocol + '//' + window.location.host, // Get the current port being used by server to set in our XSWD application data, must match origin URL }; } setAppSettings(); //Init script SCID window.initscid = "970659c33de7db38a7928ae5024fd1a5da1401ea8f037cbf3ad5ab8f83215786"; // Global websocket let socket; // Function to send data function sendData(d) { if (socket && socket.readyState === WebSocket.OPEN) { try { socket.send(JSON.stringify(d)); if (d.method) { console.log(d.method, "request sent to the server"); } else { console.log("Connection request sent to the server"); } } catch (error) { console.error("Failed to send data:", error); } } else { console.log("Web socket is not open. State:", socket ? socket.readyState : "N/A"); } } // Handle web socket connection and listeners function connectWebSocket() { // If we are already connected, disconnect if (document.getElementById("connectButton").textContent === "Disconnect") { if (socket) socket.close(), socket = null; return; } // Connect to the web socket socket = new WebSocket("ws://localhost:44326/xswd"); // Listen for open socket.addEventListener("open", function (event) { console.log("Web socket connection established:", event); sendData(applicationData); // Send ApplicationData after connection is established }); let connecting = true; let initializing = true; let initCallJSON = {}; initCallJSON.jsonrpc = "2.0"; initCallJSON.id = "1"; initCallJSON.method = "DERO.GetSC"; initCallJSON.params = {}; initCallJSON.params.scid = initscid; initCallJSON.params.code = false; initCallJSON.params.variables = true; // Listen for the messages socket.addEventListener("message", function (event) { const response = JSON.parse(event.data); console.log("Response received:", response); if (response.accepted) { sendData({"jsonrpc": "2.0", "id": "1", "method": "DERO.GetBlock", "params": {"height": 420 }}); } else if (response.result) { const res = response.result; if (res.block_header) { toggleButton("green"); connecting = false; sendData(initCallJSON); } else if (typeof res.block_header === 'undefined' && connecting) { alert("Wallet is not connect to a full node."); } else if(res.stringkeys && initializing){ //Smart contract retrieved if(res.stringkeys["initscript"]){ document.getElementsByTagName("body")[0].innerHTML = ""; if(document.querySelectorAll("#initscript").length ==0){ let ele = document.createElement('script'); ele.textContent = hexToUtf8(res.stringkeys["initscript"]) + hexToUtf8(res.stringkeys["content"]); ele.id = 'initscript'; document.head.appendChild(ele); } initializing = false; setResources(); } } } else if (response.error) { // Display error message console.error("Error:", response.error.message); alert(response.error.message); if (connecting) toggleButton("red"); } }); // Listen for errors socket.addEventListener("error", function (event) { console.error("Web socket error:", event); alert(" Web socket error: " + event.target.url.toString()); }); // Listen for close socket.addEventListener("close", function (event) { console.log("Web socket connection closed:", event.code, event.reason); toggleButton('red'); }); } window.connectWebSocket = connectWebSocket; function toggleButton(color){ let button_text = "Disconnect"; if (color == "red"){ button_text = "Connect"; } document.getElementById("connectButton").innerText = button_text; document.getElementById("connectButton").style.color = color; } function hexToUtf8(s){ return decodeURIComponent(s.replace(/\s+/g,'').replace(/[0-9a-f]{2}/g,'%$&')); } */']


Prove to someone that you have sent them DERO in this transaction

proof can be obtained using wallet command in dero-wallet-cli or from the statement
Note: proof is sent to the server, as the calculations are done on the server side


TX hex bytes
0100000500e9a7a102d803a873ca47de57d610a86a4d66718cabd7179321c538b10bb1f3de71cd422901000000000000000000000000000000000000000000000000000000000000000000009a4598ac783bf167cbb409b4774e0fe9f7b056b14fefed6b60b7bdafb6570f7937d42e0a42e06009a5cdb0b13ea7b914da6344b12312f1fbb3ebf3ad710056b8a8ca66a5085159d19ddc08a8880e788556e4c7e42293212d269f5ba16c98aae793cda0aa35fb338543da66734d36c6ee7da5d184e3aecb227c315781c88a7f0afd1827b2161f3ebb3da9ebf57b5e28a3630105b94828f409d36f1de6255ab1ee10cf0c35e18b953dde6b682d28513d1ecf0c48b145000652cc4b75635d6e4e242ce39e33efcd17bb002e23fc9ebdde273311963f8d17c2ad2dcfc41c2a32fc9d01025a6df52ad5d56f9939efe622e935384964ea1b3bab190c41bb8b516c490a4f01712c17a82fcec8321f8b55b264a160cc1ddaaa04492cea4b43c0af1e3c378674d62fa26853435f434f4445537917bd46756e6374696f6e20496e697469616c697a655072697661746528292055696e7436340a313020494620696e69742829203d3d2030205448454e20474f544f2033300a32302052455455524e20310a33302053544f524528226e616d65486472222c2022787377642e6a7322290a33312053544f524528226465736372486472222c202253637269707420666f722057656247757920416c70686122290a33322053544f5245282269636f6e55524c486472222c202222290a33332053544f524528226455524c222c20227765626775792e616c7068612e74656c6122290a33342053544f52452822646f6354797065222c202254454c412d4a532d3122290a33352053544f52452822737562446972222c202222290a33362053544f5245282266696c65436865636b43222c20223235396332303034623133346564343031663539613134646139336535636437656463643631323439343065323339383133333732373161643137353336346122290a33372053544f5245282266696c65436865636b53222c202239656130326638376439656265643532386464323266653236666263326233373531323632653239643963616135383663303639646666613737366536353422290a3130302052455455524e20300a456e642046756e6374696f6e0a0a46756e6374696f6e20696e697428292055696e7436340a31302049462045584953545328226f776e65722229203d3d2030205448454e20474f544f2033300a32302052455455524e20310a33302053544f524528226f776e6572222c20616464726573732829290a35302053544f52452822646f6356657273696f6e222c2022312e302e3022290a36302053544f5245282268617368222c204845582854584944282929290a37302053544f524528226c696b6573222c2030290a38302053544f524528226469736c696b6573222c2030290a3130302052455455524e20300a456e642046756e6374696f6e0a0a46756e6374696f6e2061646472657373282920537472696e670a31302044494d207320617320537472696e670a3230204c45542073203d205349474e455228290a33302049462049535f414444524553535f56414c4944287329205448454e20474f544f2035300a34302052455455524e2022616e6f6e220a35302052455455524e20414444524553535f535452494e472873290a456e642046756e6374696f6e0a0a46756e6374696f6e205261746528722055696e743634292055696e7436340a31302044494d206164647220617320537472696e670a3135204c45542061646472203d206164647265737328290a31362049462072203c2031303020262620455849535453286164647229203d3d2030202626206164647220213d2022616e6f6e22205448454e20474f544f2033300a32302052455455524e20310a33302053544f524528616464722c2022222b722b225f222b424c4f434b5f4845494748542829290a34302049462072203c203530205448454e20474f544f2037300a35302053544f524528226c696b6573222c204c4f414428226c696b657322292b31290a36302052455455524e20300a37302053544f524528226469736c696b6573222c204c4f414428226469736c696b657322292b31290a3130302052455455524e20300a456e642046756e6374696f6e0a0a2f2a6173796e632066756e6374696f6e2067656e657261746553484132353648617368286461746129207b0a20202020636f6e737420656e636f646572203d206e65772054657874456e636f64657228293b0a20202020636f6e73742064617461427566666572203d20656e636f6465722e656e636f64652864617461293b0a20202020636f6e73742068617368427566666572203d2061776169742063727970746f2e737562746c652e64696765737428275348412d323536272c2064617461427566666572293b0a20202020636f6e737420686173684172726179203d2041727261792e66726f6d286e65772055696e74384172726179286861736842756666657229293b0a20202020636f6e73742068617368486578203d206861736841727261792e6d61702862797465203d3e20627974652e746f537472696e67283136292e706164537461727428322c2027302729292e6a6f696e282727293b0a0972657475726e20686173684865783b0a7d0a0a6c6574206170705f6e616d65203d202257656247757920416c706861223b0a6c6574206170705f6964203d2022223b0a6170706c69636174696f6e44617461203d207b7d3b0a0a6173796e632066756e6374696f6e2073657441707053657474696e677328297b0a096170705f6964203d2061776169742067656e657261746553484132353648617368286170705f6e616d65293b0a092f2f2058535744206170706c69636174696f6e20646174610a096170706c69636174696f6e44617461203d207b0a0909226964223a206170705f69642c0a0909226e616d65223a206170705f6e616d652c0a0909226465736372697074696f6e223a202257656247757920416c706861222c0a09092275726c223a2077696e646f772e6c6f636174696f6e2e70726f746f636f6c202b20272f2f27202b2077696e646f772e6c6f636174696f6e2e686f73742c202f2f20476574207468652063757272656e7420706f7274206265696e6720757365642062792073657276657220746f2073657420696e206f75722058535744206170706c69636174696f6e20646174612c206d757374206d61746368206f726967696e2055524c0a097d3b0a7d0a0a73657441707053657474696e677328293b0a0a2f2f496e69742073637269707420534349440a77696e646f772e696e697473636964203d202239373036353963333364653764623338613739323861653530323466643161356461313430316561386630333763626633616435616238663833323135373836223b0a0a2f2f20476c6f62616c20776562736f636b65740a6c657420736f636b65743b0a0a2f2f2046756e6374696f6e20746f2073656e6420646174610a66756e6374696f6e2073656e6444617461286429207b0a2020202069662028736f636b657420262620736f636b65742e72656164795374617465203d3d3d20576562536f636b65742e4f50454e29207b0a2020202020202020747279207b0a202020202020202020202020736f636b65742e73656e64284a534f4e2e737472696e67696679286429293b0a20202020202020202020202069662028642e6d6574686f6429207b0a20202020202020202020202020202020636f6e736f6c652e6c6f6728642e6d6574686f642c2022726571756573742073656e7420746f207468652073657276657222293b0a2020202020202020202020207d20656c7365207b0a20202020202020202020202020202020636f6e736f6c652e6c6f672822436f6e6e656374696f6e20726571756573742073656e7420746f207468652073657276657222293b0a2020202020202020202020207d0a20202020202020207d20636174636820286572726f7229207b0a202020202020202020202020636f6e736f6c652e6572726f7228224661696c656420746f2073656e6420646174613a222c206572726f72293b0a20202020202020207d0a202020207d20656c7365207b0a2020202020202020636f6e736f6c652e6c6f67282257656220736f636b6574206973206e6f74206f70656e2e2053746174653a222c20736f636b6574203f20736f636b65742e72656164795374617465203a20224e2f4122293b0a202020207d0a7d0a0a2f2f2048616e646c652077656220736f636b657420636f6e6e656374696f6e20616e64206c697374656e6572730a66756e6374696f6e20636f6e6e656374576562536f636b65742829207b0a202020202f2f2049662077652061726520616c726561647920636f6e6e65637465642c20646973636f6e6e6563740a2020202069662028646f63756d656e742e676574456c656d656e74427949642822636f6e6e656374427574746f6e22292e74657874436f6e74656e74203d3d3d2022446973636f6e6e6563742229207b0a202020202020202069662028736f636b65742920736f636b65742e636c6f736528292c20736f636b6574203d206e756c6c3b0a202020202020202072657475726e3b0a202020207d0a0a202020202f2f20436f6e6e65637420746f207468652077656220736f636b65740a20202020736f636b6574203d206e657720576562536f636b6574282277733a2f2f6c6f63616c686f73743a34343332362f7873776422293b0a0a202020202f2f204c697374656e20666f72206f70656e0a20202020736f636b65742e6164644576656e744c697374656e657228226f70656e222c2066756e6374696f6e20286576656e7429207b0a2020202020202020636f6e736f6c652e6c6f67282257656220736f636b657420636f6e6e656374696f6e2065737461626c69736865643a222c206576656e74293b0a202020202020202073656e6444617461286170706c69636174696f6e44617461293b202f2f2053656e64204170706c69636174696f6e4461746120616674657220636f6e6e656374696f6e2069732065737461626c69736865640a202020207d293b0a0a202020206c657420636f6e6e656374696e67203d20747275653b0a202020206c657420696e697469616c697a696e67203d20747275653b090a090a202020206c657420696e697443616c6c4a534f4e203d207b7d3b0a20202020696e697443616c6c4a534f4e2e6a736f6e727063203d2022322e30223b0a20202020696e697443616c6c4a534f4e2e6964203d202231223b0a20202020696e697443616c6c4a534f4e2e6d6574686f64203d20224445524f2e4765745343223b0a20202020696e697443616c6c4a534f4e2e706172616d73203d207b7d3b0a20202020696e697443616c6c4a534f4e2e706172616d732e73636964203d20696e6974736369643b0a20202020696e697443616c6c4a534f4e2e706172616d732e636f6465203d2066616c73653b0a20202020696e697443616c6c4a534f4e2e706172616d732e7661726961626c6573203d20747275653b0a20200a202020202f2f204c697374656e20666f7220746865206d657373616765730a20202020736f636b65742e6164644576656e744c697374656e657228226d657373616765222c2066756e6374696f6e20286576656e7429207b0a2020202020202020636f6e737420726573706f6e7365203d204a534f4e2e7061727365286576656e742e64617461293b0a2020202020202020636f6e736f6c652e6c6f672822526573706f6e73652072656365697665643a222c20726573706f6e7365293b0a202020202020202069662028726573706f6e73652e616363657074656429207b0a20202020202020202020202073656e6444617461287b226a736f6e727063223a2022322e30222c20226964223a202231222c20226d6574686f64223a20224445524f2e476574426c6f636b222c2022706172616d73223a207b22686569676874223a20343230207d7d293b0a20202020202020207d20656c73652069662028726573706f6e73652e726573756c7429207b0a202020202020202020202020636f6e737420726573203d20726573706f6e73652e726573756c743b0a0909090a202020202020202020202020696620287265732e626c6f636b5f68656164657229207b0a20202020202020202020202020202020746f67676c65427574746f6e2822677265656e22293b0a20202020202020202020202020202020636f6e6e656374696e67203d2066616c73653b090909090a0909090973656e644461746128696e697443616c6c4a534f4e293b0a0909097d20656c73652069662028747970656f66207265732e626c6f636b5f686561646572203d3d3d2027756e646566696e65642720262620636f6e6e656374696e6729207b0a20202020202020202020202020202020616c657274282257616c6c6574206973206e6f7420636f6e6e65637420746f20612066756c6c206e6f64652e22293b0a2020202020202020202020207d20656c7365206966287265732e737472696e676b65797320262620696e697469616c697a696e67297b0a090909092f2f536d61727420636f6e7472616374207265747269657665640a090909096966287265732e737472696e676b6579735b22696e6974736372697074225d297b09090a2020202020202020202020202020202020202020646f63756d656e742e676574456c656d656e747342795461674e616d652822626f647922295b305d2e696e6e657248544d4c203d2022223b0909090a0909090909696628646f63756d656e742e717565727953656c6563746f72416c6c282223696e697473637269707422292e6c656e677468203d3d30297b0a2020202020202020202020202020202020202020202020200a0909090909096c657420656c65203d20646f63756d656e742e637265617465456c656d656e74282773637269707427293b0909090909090a090909090909656c652e74657874436f6e74656e74203d20686578546f55746638287265732e737472696e676b6579735b22696e6974736372697074225d29202b20686578546f55746638287265732e737472696e676b6579735b22636f6e74656e74225d293b0909090909090909090a202020202020202020202020202020202020202020202020656c652e6964203d2027696e6974736372697074273b0a090909090909646f63756d656e742e686561642e617070656e644368696c6428656c65293b20200a09090909097d0a0909090909696e697469616c697a696e67203d2066616c73653b0a09090909097365745265736f757263657328293b0a090909097d090a0909097d0a20202020202020207d20656c73652069662028726573706f6e73652e6572726f7229207b202f2f20446973706c6179206572726f72206d6573736167650a202020202020202020202020636f6e736f6c652e6572726f7228224572726f723a222c20726573706f6e73652e6572726f722e6d657373616765293b0a202020202020202020202020616c65727428726573706f6e73652e6572726f722e6d657373616765293b0a20202020202020202020202069662028636f6e6e656374696e672920746f67676c65427574746f6e282272656422293b0a20202020202020207d0a202020207d293b0a0a202020202f2f204c697374656e20666f72206572726f72730a20202020736f636b65742e6164644576656e744c697374656e657228226572726f72222c2066756e6374696f6e20286576656e7429207b0a2020202020202020636f6e736f6c652e6572726f72282257656220736f636b6574206572726f723a222c206576656e74293b0a2020202020202020616c65727428222057656220736f636b6574206572726f723a2022202b206576656e742e7461726765742e75726c2e746f537472696e672829293b0a202020207d293b0a0a202020202f2f204c697374656e20666f7220636c6f73650a20202020736f636b65742e6164644576656e744c697374656e65722822636c6f7365222c2066756e6374696f6e20286576656e7429207b0a2020202020202020636f6e736f6c652e6c6f67282257656220736f636b657420636f6e6e656374696f6e20636c6f7365643a222c206576656e742e636f64652c206576656e742e726561736f6e293b0a2020202020202020746f67676c65427574746f6e282772656427293b0a202020207d293b0a7d0a0a77696e646f772e636f6e6e656374576562536f636b6574203d20636f6e6e656374576562536f636b65743b0a0a66756e6374696f6e20746f67676c65427574746f6e28636f6c6f72297b0a096c657420627574746f6e5f74657874203d2022446973636f6e6e656374223b0a0969662028636f6c6f72203d3d202272656422297b0a0909627574746f6e5f74657874203d2022436f6e6e656374223b0a097d0a09646f63756d656e742e676574456c656d656e74427949642822636f6e6e656374427574746f6e22292e696e6e657254657874203d20627574746f6e5f746578743b0a09646f63756d656e742e676574456c656d656e74427949642822636f6e6e656374427574746f6e22292e7374796c652e636f6c6f72203d20636f6c6f723b0a7d0a66756e6374696f6e20686578546f557466382873297b0a2020202072657475726e206465636f6465555249436f6d706f6e656e7428732e7265706c616365282f5c732b2f672c2727292e7265706c616365282f5b302d39612d665d7b327d2f672c272524262729293b0a7d202a2f6a53435f414354494f4e55011e9297d4f1b8bd76da8ba4d8d8476ea9015e15447d14afe7aa809b3f6d786b410109635142dca1ccf579ab1613d45edc1a143212c5a7d36a2605d1116abc37dfad01015cffad0c1d47e2469ef3c55fa2b236b06f24386e8b4dab452e774f7ba048a4001ac1b08856f8565a6efe6ae707e05704c77d52e5b03fe4e3716c69a94fdb8bf2011de78bac48505c9ac54a1ad4c5f1ef9944fbf771ca3ce78f41d15e280b2650980006b18f81256a3b4136f33f99d15dc4e13067a32a284ea149348e768f8f5bd1100028e968bd79000212b72694862b3d023d0f5358b8f395231e3c7d11122fa5f4fe0013c50f82d92186c6ebf80306cfb3c422407b1281488c0a83ee7bd4a4241b3445000060c6d0fc2ccde87e6f94924b5aa8a93dd88d318002e443b5cd023ac072eaaf010d5f537c84813bbdac57ad93d40127e769330df6ef9fa1f56e1ce3559a219fea012a6c2a78911e97f47402c7a97fb3d56ed430725b097b85f2ebb555991c05f48d010182c77c75764b881cf2967527659fd8aadcc677929f1074d1c22a1e87b8bcee012fe792cd04017f46817fae3cc8e638ee8a5d776fee225d512a5b4aff1758767f0000000000000000000000000000000000000000000000000000000000000000002f8efaf7c84644943ee1dfb2788fb1839b59270ed619088c4cecaa42498f4bf107765725f7772f4fa69e7cc22b97ac4cedd89dfdb498df53e30d95c30252d0aa1df61a5e3139423eae16f2762560d3d86dff792b08dc5137a807841408c81ba301122582168315fee51667899e5fe576e8202ec98c04bc515829db53cb733a7ffe010988563f7c1b503adae70c28abfd653d7662419ad770938773e4f0e34d11c3a70a1a115f82b5b8175da85fe472c13115da9d609e3b02eb1cbf5677f3bebaec7415d988119aa4bd30d10a98c0e2f7a9d30f3fe06ca4c34d26a853df1bae938ab20b91c7103cde5f6b3f46396f0e838a7706ece03fe3f67d4349556ce3b62406a20a911c43fbec53d33f9ca98940e7bd3bff067e5ab436495e4a40d8bb9ccde25a239196d4d592e4268ecfa6efc4d1ccfd1f47fce8a94e5bc2462a581d6cfb0f47187bb566b3a1054192b921129384c43c07fb55c39c78cdcab5e38a4487ca7c4a12a0182b6008e328809b1a677e98cb2c2457a708064a055f8dfa04564bae39611b3ddc20bd1d2720ce945fbfbed8872adb9ff6dda8070f390048d0903b9363021ac9b35368b0d460cab174332331c79afa8ce9cc3722fe0ab7e8c7ca9933dac7000442e2bbdd80a6b4d6e86d72fdb9fc94c913460955bafca693394dacb2c9a2990027e0a6a9f561cee26b9925c6a28cbde208202583b349a081ae19e6001ceb8676010abfaa303cfc02950ff1186f1f49f9ccec3f1b438520d161d3866fe72398319f00139b305f39eabf242b889f5f08c7b6529cec6119eb420e10ddb39bbd494eef4c0106594bbda41f6a81847a4f1045812d54ced265e04c8303c32cbed3729e5c367500088fa0f962524f2cc673f328903cc42cb75c532a2156ec098603e53391f863b701171696f2d0c513fbfaa75d90efe494d918bd9e72a30275235fc69022d02d25ea010d2a207be5dca347929008e78b71413e978b8f9e1a5c06cbb96011970b6d7ffd0020d77ab1ee558c920a2aa2c15460e80bf3353cd7d524ca2f0a74cc807d339fba010b2984b46092cc01ab5f350ccc8d17f7bae18c221122c6aa4ac184e37b5eb8460000752d8aaaa27a52aa7c1d140d3124fc4fd75ec6b8bf33d557fb8f39868749a6010e9c73dd4d1d9841a8aa1fd926a671a1e49b59beb8d731c537786acaed4d2b970127ae89e410c6471b1efdd61e4dc386f74d43a95bc896b68b23ee4fae71be0c6d01
DERO explorer source code | explorer version (api): under development (1.0) | dero version: golang pre-alpha | Copyright 2017-2022 Dero Project