본문으로 건너뛰기
버전: 3.1

Set-Abi

Description

Create or update the abi on an account

Positionals

  • account TEXT - The account to set code for (required)
  • abi-file TEXT - The fullpath containing the contract WAST or WASM (required)

Options

  • -h,--help Print this help message and exit
  • `-a,--abi' TEXT - The ABI for the contract
  • `-x,--expiration TEXT - set the time in seconds before a transaction expires, defaults to 30s
  • -f,--force-unique - force the transaction to be unique. this will consume extra bandwidth and remove any protections against accidently issuing the same transaction multiple times
  • -s,--skip-sign Specify if unlocked wallet keys should be used to sign transaction
  • -d,--dont-broadcast - Don't broadcast transaction to the network (just print to stdout)
  • -r,--ref-block TEXT set the reference block num or block id used for TAPOS (Transaction as Proof-of-Stake)
  • -p,--permission TEXT - An account and permission level to authorize, as in 'account@permission' (defaults to 'account@active')
  • --max-cpu-usage-ms UINT - set an upper limit on the milliseconds of cpu usage budget, for the execution of the transaction (defaults to 0 which means no limit)
  • --max-net-usage UINT - set an upper limit on the net usage budget, in bytes, for the transaction (defaults to 0 which means no limit)
  • --delay-sec UINT - set the delay_sec seconds, defaults to 0s

Usage

cleos set abi someaccount1 ./path/to/abi.abi