TransactionsSandbox

Transaction details

Contract call
Success
Transaction ID
0x7f9a9e08b8d4f87565f924c71e0967b54b25dbc43b5f0daa8dc75954aed2401b
Sender address
ST2PZGXFZS6MGSDPT7YBHXPW2NHB8WFYX4RXHX7FA
Fees
0.001 STX
Block height
#399
6 days ago
Block hash
0x06cd4402cf8642b4078d2858825e61aedc8faec585b029be1e7a32e1276a8683
hello_world
View contract
Contract source
01
(
define-constant
sender
'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR
)
02
(
define-constant
recipient
'SM2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQVX8X0G
)
03
04
(
define-fungible-token
novel-token-19
)
05
(
begin
(
ft-mint?
novel-token-19
u12
sender
)
)
06
(
begin
(
ft-transfer?
novel-token-19
u2
sender recipient
)
)
07
08
(
define-non-fungible-token
hello-nft uint
)
09
(
begin
(
nft-mint?
hello-nft
u1
sender
)
)
10
(
begin
(
nft-mint?
hello-nft
u2
sender
)
)
11
(
begin
(
nft-transfer?
hello-nft
u1
sender recipient
)
)
12
13
(
define-public
(
test-emit-event
)
14
(
begin
15
(
print
"Event! Hello world"
)
16
(
ok
u1
)
)
)
17
(
begin
(
test-emit-event
)
)
18
19
(
define-public
(
test-event-types
)
20
(
begin
21
(
unwrap-panic
(
ft-mint?
novel-token-19
u3
recipient
)
)
22
(
unwrap-panic
(
nft-mint?
hello-nft
u2
recipient
)
)
23
(
unwrap-panic
(
stx-transfer?
u60
tx-sender
'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR
)
)
24
(
unwrap-panic
(
stx-burn?
u20
tx-sender
)
)
25
(
ok
u1
)
)
)
26
27
(
define-map
store
(
(
key
(
buff
32
)
)
)
(
(
value
(
buff
32
)
)
)
)
28
(
define-public
(
get-value
(
key
(
buff
32
)
)
)
29
(
begin
30
(
match
(
map-get?
store
(
(
key
key
)
)
)
31
entry
(
ok
(
get
value entry
)
)
32
(
err
0
)
)
)
)
33
(
define-public
(
set-value
(
key
(
buff
32
)
)
(
value
(
buff
32
)
)
)
34
(
begin
35
(
map-set
store
(
(
key
key
)
)
(
(
value
value
)
)
)
36
(
ok
u1
)
)
)
Function summary
Name
define-public (set-value)
Arguments
key
"foo"
value
"bar"
Post conditions
This transaction has no post-conditions.