cell.consolidate

Cell Consolidation

Build an unsigned transaction that consolidates ordinary CKB cells back to one owner address.

Request Fields

network
testnet
ownerAddress
CKB testnet address
maxCells
1 to 100
feeRate
positive integer string

Sample Request

{
  "network": "testnet",
  "ownerAddress": "ckt1...",
  "maxCells": 20,
  "feeRate": "1000"
}

Sample Response

{
  "action": "cell.consolidate",
  "status": "built",
  "warnings": [
    "No fragmented cells found"
  ]
}

Limitations

  • Ordinary cells only
  • Never consolidates unknown type scripts
  • Requires indexer access