Files
cdt/docs/03_command-reference/cdt-abigen.md
T
Bucky Kittinger e129f56d03 initial sweep
2022-06-13 17:07:57 -04:00

1.1 KiB

content_title
content_title
cdt-abigen tool

This tool is deprecated, use cdt-cpp for generation of your ABIs

To generate an ABI with cdt-abigen, only requires that you give the main '.cpp' file to compile and the output filename --output and generating against the contract name --contract.

Example:

$ cdt-abigen hello.cpp --contract=hello --output=hello.abi

This will generate one file:

  • The generated ABI file (hello.abi)
USAGE: cdt-abigen [options] <source0> [... <sourceN>]

OPTIONS:

Generic Options:

  -help                      - Display available options (-help-hidden for more)
  -help-list                 - Display list of available options (-help-list-hidden for more)
  -version                   - Display the version of this program

cdt-abigen:
generates an ABI from C++ project input

  -extra-arg=<string>        - Additional argument to append to the compiler command line
  -extra-arg-before=<string> - Additional argument to prepend to the compiler command line
  -output=<string>           - Set the output filename and fullpath
  -p=<string>                - Build path