Splitting

Complex transactions can be created using the ord wallet split command.

The split command takes a YAML configuration file, which specifies any number of outputs to be created, their bitcoin value, and their value of any number of runes. It does not currently allow assigning inscriptions to outputs.

The split command can be used to split cardinal, bitcoin-only outputs for transacting, distribute runes to large numbers of recipients in a single transaction.

To send a split transaction using the configuration in splits.yaml, run the following command:

ord wallet split --fee-rate 21 --splits split.yaml

Example splits.yaml --------------------`

# example split file

# output fields:
#   address: output recipient bitcoin address
#   value: output bitcoin value (optional, defaults to minimal-non dust value for `address`)
#   runes: output rune value map (values respect rune divisibility)
outputs:
- address: bc1p5d7rjq7g6rdk2yhzks9smlaqtedr4dekq08ge8ztwac72sfr9rusxg3297
  value: 10 sat
  runes:
    UNCOMMON•GOODS: 1234
    GRIEF•WAGE: 5000000
- address: 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy
  runes:
    HELLO•WORLD: 22.5