docs
  • Introduction
  • Getting started
    • Meet the network using CLI
    • Your first transaction
    • Run smart contract
    • Run your own node
    • Ledger Support
  • Architecture
    • Dnode
    • Dncli
    • XFI & Other coins
    • Fees & Gas
    • Addresses
  • Staking
    • Delegate sXFI & LPT
    • Become a validator
    • Rewards & Inflation
    • Slashing
    • More
  • Move VM
    • Modules
    • Scripts
    • Script Arguments
    • Standard Library
    • Events
    • Resources
    • Move Book
    • More
  • Oracles
    • Query Price
  • PegZone
    • Deposit
    • Usage
    • Withdraw
  • Useful Resources
    • Dfinance Website
    • Wallet
    • Move Book
    • Block Explorer
    • Swagger UI
    • Community
    • VSCode Move IDE
Powered by GitBook
On this page

Was this helpful?

  1. Move VM

Script Arguments

Each script can contain only one function, usually, it's "main", but you can define it however you want, This function can have arguments and will be executed when you send a transaction with your script.

With execute command you can pass arguments to script function, see help:

dncli tx vm execute --help

Dncli "execute" supports different kind of arguments, as:

  • Boolean values. Example: true, false.

  • U64, U8, U128 values (unsigned integers).

  • vector\ values (hex). Can be used for string values. Example: 0x68656c6c6f2c20776f726c6421.

  • Address values. Example: wallet1jk4ld0uu6wdrj9t8u3gghm9jt583hxx7xp7he8.

PreviousScriptsNextStandard Library

Last updated 4 years ago

Was this helpful?