You need to enable JavaScript to run this app.
By
Blockchain Alchemy
GRAT is a full-featured IDE where you make
Tezos
Smart Contracts using visual blocks.
Tutorial
Recipes
About
Connect Wallet
extension
Blocks
code
SmartPy
Contract
Variables
Address
Maps
Mutez
Timestamps
Logic
Loops
Math
Text
abc
KT1Tezooo...PVdv3
10
10
5
3
2
1
1
10
1
10
1
123
1
1
9
45
0
3.1
64
10
50
1
100
1
100
1
1
abc
text
abc
text
text
abc
abc
abc
abc
Contract Control Panel
Convert
Save
Compile
Deploy
Recipe
Fundrasier Contract
This contract will allow users to send Tezos to the contract and it will keep a ledger of donations.
Follow these steps:
Create Contract
Contract is the first block under Contract
Rename Contract
Click unnamed and rename the contract Fundraiser
Create Construct
Construct is the second block under Contract, attach it to the Contract
Add Set Contract Variable
It's the 5th block under Contract, attach it to the Contstruct
Rename Variable from Item to Ledger
Click the word item and select Rename Variable.. then enter ledger
Add Big Map
It's the third block under Maps, attach it to the Set Contract Variable
Add EntryPoint
It's the third block under Contract, attach it to the Contract
Add Verify
It's the 7th block under Contract, attach it to the Entrypoint
Insert into sp.amount
It's the third block under Mutez, attach it into the first verify slot
Set verify operator to >
Click the = in Verify and change it to >
Add sp.mutez 0
It's the first block under Mutez, attach it into the second verify slot, change the amount to 0
Add Set Map
It's the fifth block under Maps, attach it under the verify block
Change Set Map to ledger
Click item and select ledger
Add Sender Address
It's the 4th block under Address, attach it into the first Set Map slot (with key)
Add sp.amount in value
It's the third block under Mutez, attach it into second Set Map slot (value)
Add Send Block
It's the 9th block under Contract, attach it into under the Set Map block
Add sp.amount into Send
It's the third block under Mutez, attach it into first Send slot (send)
Add Self Address into Send
It's the 4th block under Address, attach it into second Send slot (to)