Skip to content

Create Publication

We are looking for publications that demonstrate building dApps or smart contracts!
See the full list of Gitcoin bounties that are eligible for rewards.

goal clerk compile

goal clerk compile

Compile a contract program


Reads a TEAL contract program and compiles it to binary output and contract address.

goal clerk compile [input file 1] [input file 2]... [flags]


  -a, --account string   Account address to sign the program (If not specified, uses default account)

  -D, --disassemble      Disassemble a compiled program

  -h, --help             help for compile

  -m, --map              Write out source map

  -n, --no-out           Don't write contract program binary

  -o, --outfile string   Filename to write program bytes or signed LogicSig to

  -s, --sign             Sign program, output is a binary signed LogicSig record

Options inherited from parent commands

  -d, --datadir stringArray   Data directory for the node

  -k, --kmddir string         Data directory for kmd

  -w, --wallet string         Set the wallet to be used for the selected operation


  • goal clerk - Provides the tools to control transactions