split-coin

Split a Coin Object into Multiple Coins

Splits a coin object into multiple coins.

Usage

movement sui client split-coin [OPTIONS] --coin-id <COIN_ID> --gas-budget <GAS_BUDGET> <--amounts <AMOUNTS>...|--count <COUNT>>

Options

  • --coin-id <COIN_ID> Coin to split, in a 20-byte Hex string.

  • --amounts <AMOUNTS>... Specific amounts to split out from the coin.

  • --count <COUNT> Count of equal-size coins to split into.

  • --gas <GAS> ID of the gas object for gas payment, in a 20-byte Hex string. If not provided, a gas object with at least gas_budget value will be selected.

  • --gas-budget <GAS_BUDGET> Gas budget for this call.

  • --serialize-unsigned-transaction Instead of executing the transaction, serialize the bcs bytes of the unsigned transaction data (TransactionData) using base64 encoding, and print out the string.

  • --serialize-signed-transaction Instead of executing the transaction, serialize the bcs bytes of the signed transaction data (SenderSignedData) using base64 encoding, and print out the string.

  • --json Return command outputs in json format.

Last updated