Description

Retrieves the code and ABI for an account

Positional Parameters

  • name TEXT - The name of the account whose code should be retrieved

Options

  • -c,--code TEXT - The name of the file to save the contract .wast to
  • -a,--abi TEXT - The name of the file to save the contract .abi to
  • --wasm Save contract as wasm

Examples

Simply output the hash of arisen.token contract

arisecli get code arisen.token
code hash: f675e7aeffbf562c033acfaf33eadff255dacb90d002db51c7ad7cbf057eb791

Retrieve and save abi for arisen.token contract

arisecli get code arisen.token -a arisen.token.abi
code hash: f675e7aeffbf562c033acfaf33eadff255dacb90d002db51c7ad7cbf057eb791
saving abi to arisen.token.abi

Retrieve and save wast code for arisen.token contract

arisecli get code arisen.token -c arisen.token.wast
code hash: f675e7aeffbf562c033acfaf33eadff255dacb90d002db51c7ad7cbf057eb791
saving wast to arisen.token.wast