/** * @return WalletId * @throws \Exception */ public function nextIdentity() { $id = strtoupper(str_replace('.', '', uniqid('', true))); if (strlen($id) > 25) { throw new \Exception("BlockCypher wallet names can not be longer than 25 characters"); } return WalletId::create($id); }