Unit ID
WILeXE/GEWWP1lJ0vk9yqMhi7AjfGqeR+tVjXmG87a0=
Received
16.07.2018 01:41:51
Confirmation delay (full node)
5 minutes 53 seconds
Confirmation delay (light node)
7 minutes 44 seconds
Authors
4SYEGX4OGJVM6JEBDOGYBHBOAEKOQR5R
Definition
Messages
Text
// A DApp that sums up two numbers

function asNumber(x) {
    if (typeof x === "number") return x;
    if (typeof x === "string") return Number.parseInt(x, 10);
    throw Error("Not a number: " + x);
}

var a = asNumber(params.a);
var b = asNumber(params.b);

a + b;
Technical information
Fees:
871 bytes
(392 headers, 479 payload)
Level:642600
Witnessed level:642593
Main chain index:641912
Latest included mc index:641911
Status:stable/confirmed/final